1.压缩图片
android:scaleType="fitXY"
2.锁定长宽比例缩放
android:adjustViewBounds="true"
3.权重设置
android:layout_width/android:layout_height 先设置为 0dip,再通过 android:layout_weight 设置权重
1.压缩图片
android:scaleType="fitXY"
2.锁定长宽比例缩放
android:adjustViewBounds="true"
3.权重设置
android:layout_width/android:layout_height 先设置为 0dip,再通过 android:layout_weight 设置权重
本文标题:布局小笔记
本文链接:https://www.haomeiwen.com/subject/zribrxtx.html
网友评论