开发者

Android XML Styling

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜