Android ImageView去掉周围的白边
16lz
2021-01-23
在使用ImageView的时候不管怎样调整scaleType的属性总会有白边出现,我纠结了好久,不过还好。。。
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:scaleType="centerInside"
android:adjustViewBounds="true"
android:src="@drawable/icon_index1" />
更多相关文章
- 给android添加系统属性
- Android屏幕属性应用
- android 用代码设置margin属性,textView加粗
- android中设置一些没有maxHeight属性控件的最高值
- Android--(6)--详解ImageButton属性
- Android EditText属性大全
- Android自学笔记之Android常见命令操作及一些普通布局属性
- Android Material Design 控件常用的属性