gridlayout 子view撑出屏幕
16lz
2022-05-19
android:layout_width="0dp" android:layout_height="0dp" app:layout_columnWeight="1" app:layout_rowWeight="1"
使用的是support中的gridlayout.
设置子view 的宽高为0 ,同时加上weight。
如果子view 的宽高设置为match_parent, 同时也加上weight, 无效。具体原因还未得知。
更多相关文章
- 关于android theme
- Android实现开机自启动无效问题
- Gradle build 报错:Received status code 400 from server: Bad R
- android 如何画虚线
- android:maxLength="" 设置字数限制无效
- Android(安卓)studio无法修改桌面的图标(已解决)
- Android画图之抗锯齿
- Android中用Spannable在TextView中给文字加上边框
- Android(安卓)Studio 调试过程中快捷查看断点处变量值(Ctrl+Shift