parent
4ccb9c8a9a
commit
f186c45c49
|
|
@ -130,8 +130,7 @@ fun MineScreen(
|
||||||
indication = null,
|
indication = null,
|
||||||
interactionSource = remember { MutableInteractionSource() }
|
interactionSource = remember { MutableInteractionSource() }
|
||||||
) {
|
) {
|
||||||
// 处理点击事件
|
// 处理点击事件(头像)
|
||||||
Toast.makeText(context, "头像", Toast.LENGTH_SHORT).show()
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}else{
|
}else{
|
||||||
|
|
@ -146,8 +145,7 @@ fun MineScreen(
|
||||||
indication = null,
|
indication = null,
|
||||||
interactionSource = remember { MutableInteractionSource() }
|
interactionSource = remember { MutableInteractionSource() }
|
||||||
) {
|
) {
|
||||||
// 处理点击事件
|
// 处理点击事件(头像)
|
||||||
Toast.makeText(context, "头像", Toast.LENGTH_SHORT).show()
|
|
||||||
},
|
},
|
||||||
fallback = painterResource(id = R.mipmap.ic_user_avatar_default),
|
fallback = painterResource(id = R.mipmap.ic_user_avatar_default),
|
||||||
error = painterResource(id = R.mipmap.ic_user_avatar_default)
|
error = painterResource(id = R.mipmap.ic_user_avatar_default)
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<!-- 单色填充背景 -->
|
<!-- 单色填充背景 -->
|
||||||
<item name="windowSplashScreenBackground">#E0F2FF</item>
|
<item name="windowSplashScreenBackground">#E0F2FF</item>
|
||||||
<!-- 替换ICON -->
|
<!-- 替换ICON -->
|
||||||
<item name="windowSplashScreenAnimatedIcon">@mipmap/ic_launcher_logo</item>
|
<item name="windowSplashScreenAnimatedIcon">@drawable/splash_icon_wrapper</item>
|
||||||
<!-- 设置启动画面在关闭之前显示的时长。最长时间为 100 毫秒 -->
|
<!-- 设置启动画面在关闭之前显示的时长。最长时间为 100 毫秒 -->
|
||||||
<item name="windowSplashScreenAnimationDuration">100</item>
|
<item name="windowSplashScreenAnimationDuration">100</item>
|
||||||
<!-- 启动页持续时间(动画结束后) -->
|
<!-- 启动页持续时间(动画结束后) -->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue