1、解决启动页图标被裁剪问题
This commit is contained in:
shenzuqiang 2026-03-09 11:15:51 +08:00
parent 4ccb9c8a9a
commit f186c45c49
3 changed files with 18 additions and 5 deletions

View File

@ -130,8 +130,7 @@ fun MineScreen(
indication = null,
interactionSource = remember { MutableInteractionSource() }
) {
// 处理点击事件
Toast.makeText(context, "头像", Toast.LENGTH_SHORT).show()
// 处理点击事件(头像)
}
)
}else{
@ -146,8 +145,7 @@ fun MineScreen(
indication = null,
interactionSource = remember { MutableInteractionSource() }
) {
// 处理点击事件
Toast.makeText(context, "头像", Toast.LENGTH_SHORT).show()
// 处理点击事件(头像)
},
fallback = painterResource(id = R.mipmap.ic_user_avatar_default),
error = painterResource(id = R.mipmap.ic_user_avatar_default)

View File

@ -0,0 +1,15 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<size android:width="200dp" android:height="200dp"/>
<solid android:color="@android:color/transparent"/>
</shape>
</item>
<item
android:drawable="@mipmap/ic_launcher_logo"
android:width="80dp"
android:height="80dp"
android:gravity="center" />
</layer-list>

View File

@ -15,7 +15,7 @@
<!-- 单色填充背景 -->
<item name="windowSplashScreenBackground">#E0F2FF</item>
<!-- 替换ICON -->
<item name="windowSplashScreenAnimatedIcon">@mipmap/ic_launcher_logo</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/splash_icon_wrapper</item>
<!-- 设置启动画面在关闭之前显示的时长。最长时间为 100 毫秒 -->
<item name="windowSplashScreenAnimationDuration">100</item>
<!-- 启动页持续时间(动画结束后) -->