安卓 : widget size for all screen

标签 android widget size

如何为所有 Android 设备创建大小合适的小部件?我在 Galaxy Nexus 上的小部件位于中心,但在 Galaxy Note 上是正确的或不在中心:-(如何解决这个问题?谢谢

最佳答案

How can resolve this problem ?

问题大概出在您为应用程序小部件使用的布局上。您需要考虑到应用小部件的大小会因设备而异,并相应地设计您的布局(例如,使用 fill_parent 作为根元素的宽度和高度)。

关于安卓 : widget size for all screen,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10171593/

相关文章:

macos - Cocoa OSX 自定义小部件/控件

android - 更新 Widget 中的 Android ListView

javascript - 单击时加载 uservoice API

linux - 在 Linux 中查找/重命名大文件

C++ 元编程检测大小数组

java - Google Maps Utils IconGenerator 文本样式和背景

android - 终止应用程序后我的工作经理不工作

java - 有点像java/android中的动态函数

android - 如何在Android中使用PHP的password_hash

c - 在 C 中动态指定要扫描的最大字符串长度(如 printf 中的 "%*s")