开发者

Android XML Styling

开发者 https://www.devze.com 2022-12-17 03:35 出处:网络
I\'m using themes to style widgets开发者_StackOverflow中文版 in Android. With the code: <item name=\"android:width\">200px</item>

I'm using themes to style widgets开发者_StackOverflow中文版 in Android.

With the code:

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

... i can set the width of the widget to 200px.

But how can I specify "wrap_content" and "fill_parent"?

Strings are not allowed there!


wrap_content and fill_parent are valid for layout_height and layout_width not width.

0

精彩评论

暂无评论...
验证码 换一张
取 消