Android 线性布局:水平排列控件的 layout_width 属性
在 Android 线性布局中,当控件水平排列时,控件属性 layout_width 应该设置为 match_parent。
选项解析:
- wrap_content: 控件根据自身内容大小自动调整宽度。
- match_parent: 控件宽度与父容器宽度一致。
- fill_parent: 与 match_parent 相同,在 API Level 16 之前使用,现在已经过时。
正确答案:B. match_parent
原文地址: https://www.cveoy.top/t/topic/o2rN 著作权归作者所有。请勿转载和采集!