帖子详情中一张图片不会现实底部数量球
This commit is contained in:
@@ -182,7 +182,7 @@ fun DiscoverView() {
|
||||
) {
|
||||
Image(
|
||||
modifier = Modifier.size(24.dp),
|
||||
painter = painterResource(R.drawable.rider_pro_images),
|
||||
painter = painterResource(R.drawable.rider_pro_picture_more),
|
||||
contentDescription = "",
|
||||
)
|
||||
}
|
||||
|
||||
@@ -580,12 +580,12 @@ fun PostImageView(
|
||||
.fillMaxWidth(),
|
||||
horizontalArrangement = Arrangement.Center
|
||||
) {
|
||||
if(images.size > 1){
|
||||
images.forEachIndexed { index, _ ->
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.size(4.dp)
|
||||
.clip(CircleShape)
|
||||
|
||||
.background(
|
||||
if (pagerState.currentPage == index) Color.Red else Color.Gray.copy(
|
||||
alpha = 0.5f
|
||||
@@ -599,6 +599,7 @@ fun PostImageView(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
18
app/src/main/res/drawable/rider_pro_picture_more.xml
Normal file
18
app/src/main/res/drawable/rider_pro_picture_more.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="16dp"
|
||||
android:height="16dp"
|
||||
android:viewportWidth="16"
|
||||
android:viewportHeight="16">
|
||||
<path
|
||||
android:pathData="M5,2L9,2A3,3 0,0 1,12 5L12,9A3,3 0,0 1,9 12L5,12A3,3 0,0 1,2 9L2,5A3,3 0,0 1,5 2z"
|
||||
android:strokeWidth="1"
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="#00000000"/>
|
||||
<path
|
||||
android:pathData="M14.75,4.25L14.75,11C14.75,13.071 13.071,14.75 11,14.75L4.25,14.75L4.25,13.25L11,13.25C12.243,13.25 13.25,12.243 13.25,11L13.25,4.25L14.75,4.25Z"
|
||||
android:strokeWidth="1"
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="nonZero"
|
||||
android:strokeColor="#00000000"/>
|
||||
</vector>
|
||||
Reference in New Issue
Block a user