Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用主题来设计 Android 中的小部件。
使用代码:
<item name="android:width">200px</item>
...我可以将小部件的宽度设置为 200 像素。
但是如何指定“wrap_content”和“fill_parent”?
那里不允许使用字符串!
wrap_content并且fill_parent适用于layout_height而layout_width不是宽度。
wrap_content
fill_parent
layout_height
layout_width