【问题标题】:Android XML StylingAndroid XML 样式
【发布时间】:2011-01-06 02:55:36
【问题描述】:

我在 Android 中使用主题来设置小部件的样式。

附上代码:

<item name="android:width">200px</item>

...我可以将小部件的宽度设置为 200px。

但是如何指定“wrap_content”和“fill_parent”?

那里不允许有字符串!

【问题讨论】:

    标签: xml android styling


    【解决方案1】:

    wrap_contentfill_parentlayout_heightlayout_width 有效,而不是宽度。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-04-04
      • 1970-01-01
      • 2021-07-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-08
      • 2016-10-22
      • 2019-12-23
      相关资源
      最近更新 更多