홈 - 크리에이터 랭킹 뱃지 변경
This commit is contained in:
@@ -41,22 +41,22 @@ class CreatorRankingAdapter(
|
|||||||
|
|
||||||
when (index) {
|
when (index) {
|
||||||
0 -> {
|
0 -> {
|
||||||
binding.ivCrown.setImageResource(R.drawable.rank1)
|
binding.ivRankingBadge.setImageResource(R.drawable.img_rank_1)
|
||||||
binding.ivCrown.visibility = View.VISIBLE
|
binding.ivRankingBadge.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
|
|
||||||
1 -> {
|
1 -> {
|
||||||
binding.ivCrown.setImageResource(R.drawable.rank2)
|
binding.ivRankingBadge.setImageResource(R.drawable.img_rank_2)
|
||||||
binding.ivCrown.visibility = View.VISIBLE
|
binding.ivRankingBadge.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
|
|
||||||
2 -> {
|
2 -> {
|
||||||
binding.ivCrown.setImageResource(R.drawable.rank3)
|
binding.ivRankingBadge.setImageResource(R.drawable.img_rank_3)
|
||||||
binding.ivCrown.visibility = View.VISIBLE
|
binding.ivRankingBadge.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
|
|
||||||
else -> {
|
else -> {
|
||||||
binding.ivCrown.visibility = View.GONE
|
binding.ivRankingBadge.visibility = View.GONE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
BIN
app/src/main/res/drawable-mdpi/img_rank_1.png
Normal file
BIN
app/src/main/res/drawable-mdpi/img_rank_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
app/src/main/res/drawable-mdpi/img_rank_2.png
Normal file
BIN
app/src/main/res/drawable-mdpi/img_rank_2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
app/src/main/res/drawable-mdpi/img_rank_3.png
Normal file
BIN
app/src/main/res/drawable-mdpi/img_rank_3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB |
@@ -1,27 +1,36 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content">
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
|
||||||
android:layout_width="144dp"
|
android:layout_width="144dp"
|
||||||
android:layout_height="204dp"
|
android:layout_height="204dp"
|
||||||
android:layout_marginTop="20dp"
|
|
||||||
android:background="@drawable/bg_home_creator"
|
android:background="@drawable/bg_home_creator"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="16dp">
|
android:padding="16dp">
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/fl_profile"
|
||||||
|
android:layout_width="108dp"
|
||||||
|
android:layout_height="105dp"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_profile"
|
android:id="@+id/iv_profile"
|
||||||
android:layout_width="84dp"
|
android:layout_width="84dp"
|
||||||
android:layout_height="84dp"
|
android:layout_height="84dp"
|
||||||
android:contentDescription="@null"
|
android:layout_gravity="center"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
android:contentDescription="@null" />
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
<ImageView
|
||||||
|
android:id="@+id/iv_ranking_badge"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
tools:src="@drawable/img_rank_1" />
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_nickname"
|
android:id="@+id/tv_nickname"
|
||||||
@@ -35,7 +44,7 @@
|
|||||||
app:layout_constraintBottom_toTopOf="@+id/tv_follow"
|
app:layout_constraintBottom_toTopOf="@+id/tv_follow"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/iv_profile"
|
app:layout_constraintTop_toBottomOf="@+id/fl_profile"
|
||||||
tools:text="도화" />
|
tools:text="도화" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@@ -53,13 +62,4 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/iv_crown"
|
|
||||||
android:layout_width="40dp"
|
|
||||||
android:layout_height="40dp"
|
|
||||||
android:layout_marginStart="10dp"
|
|
||||||
android:contentDescription="@null"
|
|
||||||
tools:src="@drawable/rank1" />
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user