parent
bbd972d860
commit
623ff545b5
|
@ -42,7 +42,7 @@ class ContentRankCreatorAdapter(
|
|||
}
|
||||
|
||||
if (item.creatorId == selectedCreatorId) {
|
||||
binding.ivBg.setImageResource(R.drawable.bg_circle_3bb9f1)
|
||||
binding.ivBg.setImageResource(R.drawable.bg_round_corner_33_3_transparent_3bb9f1)
|
||||
binding.ivBg.visibility = View.VISIBLE
|
||||
binding.tvNickname.setTextColor(
|
||||
ContextCompat.getColor(
|
||||
|
|
|
@ -413,17 +413,17 @@ class AudioContentMainTabAsmrFragment : BaseFragment<FragmentAudioContentMainTab
|
|||
when (parent.getChildAdapterPosition(view)) {
|
||||
0 -> {
|
||||
outRect.left = 0
|
||||
outRect.right = 4f.dpToPx().toInt()
|
||||
outRect.right = 11f.dpToPx().toInt()
|
||||
}
|
||||
|
||||
contentRankCreatorAdapter.itemCount - 1 -> {
|
||||
outRect.left = 4f.dpToPx().toInt()
|
||||
outRect.left = 11f.dpToPx().toInt()
|
||||
outRect.right = 0
|
||||
}
|
||||
|
||||
else -> {
|
||||
outRect.left = 4f.dpToPx().toInt()
|
||||
outRect.right = 4f.dpToPx().toInt()
|
||||
outRect.left = 11f.dpToPx().toInt()
|
||||
outRect.right = 11f.dpToPx().toInt()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -433,17 +433,17 @@ class AudioContentMainTabContentFragment : BaseFragment<FragmentAudioContentMain
|
|||
when (parent.getChildAdapterPosition(view)) {
|
||||
0 -> {
|
||||
outRect.left = 0
|
||||
outRect.right = 4f.dpToPx().toInt()
|
||||
outRect.right = 11f.dpToPx().toInt()
|
||||
}
|
||||
|
||||
contentRankCreatorAdapter.itemCount - 1 -> {
|
||||
outRect.left = 4f.dpToPx().toInt()
|
||||
outRect.left = 11f.dpToPx().toInt()
|
||||
outRect.right = 0
|
||||
}
|
||||
|
||||
else -> {
|
||||
outRect.left = 4f.dpToPx().toInt()
|
||||
outRect.right = 4f.dpToPx().toInt()
|
||||
outRect.left = 11f.dpToPx().toInt()
|
||||
outRect.right = 11f.dpToPx().toInt()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -688,17 +688,17 @@ class AudioContentMainTabHomeFragment : BaseFragment<FragmentAudioContentMainTab
|
|||
when (parent.getChildAdapterPosition(view)) {
|
||||
0 -> {
|
||||
outRect.left = 0
|
||||
outRect.right = 4f.dpToPx().toInt()
|
||||
outRect.right = 11f.dpToPx().toInt()
|
||||
}
|
||||
|
||||
contentRankCreatorAdapter.itemCount - 1 -> {
|
||||
outRect.left = 4f.dpToPx().toInt()
|
||||
outRect.left = 11f.dpToPx().toInt()
|
||||
outRect.right = 0
|
||||
}
|
||||
|
||||
else -> {
|
||||
outRect.left = 4f.dpToPx().toInt()
|
||||
outRect.right = 4f.dpToPx().toInt()
|
||||
outRect.left = 11f.dpToPx().toInt()
|
||||
outRect.right = 11f.dpToPx().toInt()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -298,17 +298,17 @@ class AudioContentMainTabReplayFragment : BaseFragment<FragmentAudioContentMainT
|
|||
when (parent.getChildAdapterPosition(view)) {
|
||||
0 -> {
|
||||
outRect.left = 0
|
||||
outRect.right = 4f.dpToPx().toInt()
|
||||
outRect.right = 11f.dpToPx().toInt()
|
||||
}
|
||||
|
||||
contentRankCreatorAdapter.itemCount - 1 -> {
|
||||
outRect.left = 4f.dpToPx().toInt()
|
||||
outRect.left = 11f.dpToPx().toInt()
|
||||
outRect.right = 0
|
||||
}
|
||||
|
||||
else -> {
|
||||
outRect.left = 4f.dpToPx().toInt()
|
||||
outRect.right = 4f.dpToPx().toInt()
|
||||
outRect.left = 11f.dpToPx().toInt()
|
||||
outRect.right = 11f.dpToPx().toInt()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -559,17 +559,17 @@ class AudioContentMainTabSeriesFragment : BaseFragment<FragmentAudioContentMainT
|
|||
when (parent.getChildAdapterPosition(view)) {
|
||||
0 -> {
|
||||
outRect.left = 0
|
||||
outRect.right = 4f.dpToPx().toInt()
|
||||
outRect.right = 11f.dpToPx().toInt()
|
||||
}
|
||||
|
||||
recommendSeriesCreatorAdapter.itemCount - 1 -> {
|
||||
outRect.left = 4f.dpToPx().toInt()
|
||||
outRect.left = 11f.dpToPx().toInt()
|
||||
outRect.right = 0
|
||||
}
|
||||
|
||||
else -> {
|
||||
outRect.left = 4f.dpToPx().toInt()
|
||||
outRect.right = 4f.dpToPx().toInt()
|
||||
outRect.left = 11f.dpToPx().toInt()
|
||||
outRect.right = 11f.dpToPx().toInt()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,30 +2,31 @@
|
|||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="93.3dp"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_profile"
|
||||
android:layout_width="66.6dp"
|
||||
android:layout_height="66.6dp"
|
||||
<FrameLayout
|
||||
android:id="@+id/fl_profile"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_bg"
|
||||
android:id="@+id/iv_profile"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:contentDescription="@null" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_profile"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:contentDescription="@null" />
|
||||
</RelativeLayout>
|
||||
android:id="@+id/iv_bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:contentDescription="@null"
|
||||
android:src="@drawable/bg_round_corner_33_3_transparent_3bb9f1" />
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_nickname"
|
||||
|
@ -40,6 +41,6 @@
|
|||
android:textSize="11.3sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/rl_profile"
|
||||
app:layout_constraintTop_toBottomOf="@+id/fl_profile"
|
||||
tools:text="상남자12039" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
|
Loading…
Reference in New Issue