c# - android:textAlignment 在 xamarin 4.7,.10.38 的设计器中不受尊重
问题描述
当我在 Xamarin 中更改 android:textAlignment 时不起作用,但值属性为 0
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/background_light"
tools:gridSpec="1|16|#0093eeff|K:#008080ff:16,l:72,l:16,r|S:#83ee00ff:16,0,l:16,56,l:16,0,r">
<TextView
android:text="Hallo World"
android:layout_width="394.0dp"
android:layout_height="68.5dp"
android:id="@+id/textView1"
android:textColor="@android:color/background_dark"
android:textSize="36dp"
android:layout_marginBottom="58.0dp"
android:textAlignment="center" />
</LinearLayout>
解决方案
推荐阅读
- ios - UIImagePickerController 和照片库访问
- python - 如何使用 Grid 重新调整 Tkinter 文本输入小部件的大小?
- performance - 在 Kubernetes Live Probes 中配置 Spring Boot 在高负载下表现良好
- c++ - gcc/g++ 使用链接器标志“-lSDL2”
- javascript - 淡化动画使我的模态在 Windows 10 中失败
- azure - [Azure][Bot Service] 有没有 API 可以从 directline 3.0 chache 中删除对话?
- swift - Swift:禁用 UITabBarItem 的方法不起作用
- cakephp - CakePHP 如何验证 CSRF 令牌?
- java - 如何使用 Gson 反序列化 Kotlin 数组列表?
- c++ - 使用指针作为参数重载 ostream << 运算符,导致输出内存地址