2010-01-17 36 views
0

我正在使用主題來設計Android中的窗口小部件。Android XML樣式

隨着代碼:

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

...我可以小部件的設置寬度爲200像素。

但我怎樣才能指定「wrap_content」和「fill_parent」?

字符串不允許在那裏!

回答

2

wrap_contentfill_parent適用於layout_heightlayout_width不是寬度。

+0

你是對的......謝謝......;) – daliz