帖子详情中一张图片不会现实底部数量球

This commit is contained in:
2024-09-10 04:51:56 +08:00
parent 40d7fa51d4
commit 6ce026d72c
3 changed files with 33 additions and 14 deletions

View File

@@ -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 = "",
)
}

View File

@@ -580,22 +580,23 @@ fun PostImageView(
.fillMaxWidth(),
horizontalArrangement = Arrangement.Center
) {
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
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
)
)
)
.padding(4.dp)
.padding(4.dp)
)
Spacer(modifier = Modifier.width(8.dp))
)
Spacer(modifier = Modifier.width(8.dp))
}
}
}
}

View 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>