android - 为什么我的 android RadioButton 文本在开头被截断了?

标签 android android-layout

我遇到了一个非常奇怪的布局问题......基本上这个 RadioGroup 中的第一个按钮丢失了它的第一个字母,根据这个截图(它应该说“Booked Off”,而不是“ooked Off”):

mangled RadioButton text screenshot

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/

相关文章:

android - Google Market 结算包和 Google Play 结算库有什么区别

android - 即使我的应用程序不工作,我的广播接收器也会执行

java - 如何修复 Android 中提供的layout_width属性

java - 如何在android中的相对布局上添加涟漪效应?

javascript - 小屏幕 float 内容/额外宽度

android - 从 android 中通过 sqlite 数据库进行不适当的搜索

java - 无法编译 Gallery2 项目

php - php 代码错误。也许我的 for 循环有误?

java - 如何在android中裁剪位图的重叠区域?

android - 无法实例化 com.google.android.youtube.player.YouTubePlayerView