相同的CheckBox但在两台不同的Android机器上有不同的显示?

发布于 2024-12-26 05:31:12 字数 754 浏览 2 评论 0原文

我想在我的 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):
enter image description here

And in my Sony Ericsson LT18i (Android 2.3.4):
enter image description here

And shop_near_choise_bg.9.png:
enter image description here

<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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凉世弥音 2025-01-02 05:31:12

正如我所看到的,您的可绘制内容中没有放置内容的位置(黑色像素右侧和图片底部)。指定该区域并再次检查。

如果您在那里使用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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文