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