我遇到了一个非常奇怪的布局问题…基本上,按照此屏幕截图,此RadioGroup中的第一个按钮丢失了它的第一个字母(它应该显示为“ Booked Off”,而不是“ ooked Off”):
XML片段非常简单(我在外部样式或其他任何方面都没有什么好笑的):
<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所述,它似乎没有出现在以后的模拟器中.更好的是,它只会在您第一次进行活动时显示.出门再回来,它又恢复了正常.因此,我想,总的来说,这是一个很小的缺陷,可以忽略.
总结以上是内存溢出为你收集整理的为什么我的android RadioButton文本一开始就被截断了?全部内容,希望文章能够帮你解决为什么我的android RadioButton文本一开始就被截断了?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)