但是显示的大小有点不一样 怎么让他们完全一致呢。imageview 是设置的 src
1
vanillaxxx 2020 年 7 月 7 日 via iPhone
background 貌似无解
|
2
ccl1115 2020 年 7 月 7 日
drawable 目录创建一个 background.xml, 内容如下:
<?xml version="1.0" encoding="utf-8"?> <bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/background" android:gravity="clip_horizontal|clip_vertical"> </bitmap> splashactivity 的 ImageView 设置 scaleType 为 centerCrop |
4
MaL 2020 年 7 月 8 日
splashactivity 可以只设置 windowbackground 吧,移除 imageview 就行了
|