我遇到了一个非常奇怪的布局问题......基本上这个 RadioGroup 中的第一个按钮丢失了它的第一个字母,根据这个截图(它应该说“Booked Off”,而不是“ooked Off”):
XML fragment 相当简单(而且我在外部样式或其他方面没有任何有趣的东西):
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RadioGroup android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<RadioButton android:id="@+shift_edit/bookoff"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Booked Off" />
<RadioButton android:id="@+shift_edit/ado"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ADO" />
<RadioButton android:id="@+shift_edit/working"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Working" />
</RadioGroup>
</LinearLayout>
有没有人认识到这里的问题并可以提供解决方案?如果重要的话,我会使用 1.6,因为我的目标设备只有 1.6 ROM。
最佳答案
因此,在将我的应用程序部署到真实(Android 1.6)设备后,问题似乎出在模拟器中。我无法在真实设备上重现它。此外,正如 user432209 所提到的,它似乎没有出现在以后的模拟器中。更好的是,它只在您第一次呈现 Activity 时显示;出去再进去,又恢复正常了。所以我想总而言之,这是一个可以忽略的非常小的缺陷。
关于android - 为什么我的 android RadioButton 文本在开头被截断了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4986230/