相同的CheckBox但在两台不同的Android机器上有不同的显示?
我想在我的 Android 机器上自定义我的 CheckBox,但它在不同的 Android 机器上有不同的显示?
这是我的 Milestone 2 (Android 2.2) 中的内容:
在我的索尼爱立信 LT18i (Android 2.3.4) 中:
和 shop_near_choise_bg.9.png:
<CheckBox
android:id="@+id/shop_near_distance_selector"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.0"
android:background="@drawable/shop_near_choise_bg"
android:button="@null"
android:padding="0dip"
android:text="@string/shop_near" />
I want to customize my CheckBox on my Android mechine, but it has different display in different android mechine?
Here is in my Milestone 2 (Android 2.2):
And in my Sony Ericsson LT18i (Android 2.3.4):
And shop_near_choise_bg.9.png:
<CheckBox
android:id="@+id/shop_near_distance_selector"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.0"
android:background="@drawable/shop_near_choise_bg"
android:button="@null"
android:padding="0dip"
android:text="@string/shop_near" />
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如我所看到的,您的可绘制内容中没有放置内容的位置(黑色像素右侧和图片底部)。指定该区域并再次检查。
如果您在那里使用draw9patch,您可以看到内容区域。
As i can see you don't have place for content in you drawable(black px right and bottom of picture). Specify this area and check it again.
If you use draw9patch there you can see area for content.