|
@ -769,7 +769,7 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
||||||
binding.ivFollow.visibility = View.VISIBLE
|
binding.ivFollow.visibility = View.VISIBLE
|
||||||
|
|
||||||
if (creator.isFollowing) {
|
if (creator.isFollowing) {
|
||||||
binding.ivFollow.setImageResource(R.drawable.btn_notification_selected)
|
binding.ivFollow.setImageResource(R.drawable.btn_following_big)
|
||||||
binding.ivFollow.setOnClickListener {
|
binding.ivFollow.setOnClickListener {
|
||||||
viewModel.unRegisterNotification(
|
viewModel.unRegisterNotification(
|
||||||
contentId = audioContentId,
|
contentId = audioContentId,
|
||||||
|
@ -777,7 +777,7 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
binding.ivFollow.setImageResource(R.drawable.btn_notification)
|
binding.ivFollow.setImageResource(R.drawable.btn_follow_big)
|
||||||
binding.ivFollow.setOnClickListener {
|
binding.ivFollow.setOnClickListener {
|
||||||
viewModel.registerNotification(
|
viewModel.registerNotification(
|
||||||
contentId = audioContentId,
|
contentId = audioContentId,
|
||||||
|
|
|
@ -615,12 +615,12 @@ class UserProfileActivity : BaseActivity<ActivityUserProfileBinding>(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (creator.isNotification) {
|
if (creator.isNotification) {
|
||||||
layoutUserProfile.ivNotification.setImageResource(R.drawable.btn_notification_selected)
|
layoutUserProfile.ivNotification.setImageResource(R.drawable.btn_following_big)
|
||||||
layoutUserProfile.ivNotification.setOnClickListener {
|
layoutUserProfile.ivNotification.setOnClickListener {
|
||||||
viewModel.unFollow(creator.creatorId)
|
viewModel.unFollow(creator.creatorId)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
layoutUserProfile.ivNotification.setImageResource(R.drawable.btn_notification)
|
layoutUserProfile.ivNotification.setImageResource(R.drawable.btn_follow_big)
|
||||||
layoutUserProfile.ivNotification.setOnClickListener {
|
layoutUserProfile.ivNotification.setOnClickListener {
|
||||||
viewModel.follow(creator.creatorId)
|
viewModel.follow(creator.creatorId)
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,13 +31,13 @@ class UserFollowerListAdapter(
|
||||||
if (item.isFollow != null) {
|
if (item.isFollow != null) {
|
||||||
binding.ivNotification.visibility = View.VISIBLE
|
binding.ivNotification.visibility = View.VISIBLE
|
||||||
if (item.isFollow) {
|
if (item.isFollow) {
|
||||||
binding.ivNotification.setImageResource(R.drawable.btn_notification_selected)
|
binding.ivNotification.setImageResource(R.drawable.btn_following_big)
|
||||||
binding.ivNotification.setOnClickListener {
|
binding.ivNotification.setOnClickListener {
|
||||||
onClickUnRegisterNotification(item.userId)
|
onClickUnRegisterNotification(item.userId)
|
||||||
clear()
|
clear()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
binding.ivNotification.setImageResource(R.drawable.btn_notification)
|
binding.ivNotification.setImageResource(R.drawable.btn_follow_big)
|
||||||
binding.ivNotification.setOnClickListener {
|
binding.ivNotification.setOnClickListener {
|
||||||
onClickRegisterNotification(item.userId)
|
onClickRegisterNotification(item.userId)
|
||||||
clear()
|
clear()
|
||||||
|
|
|
@ -32,7 +32,7 @@ class FollowingCreatorAdapter(
|
||||||
|
|
||||||
binding.ivNotification.visibility = View.VISIBLE
|
binding.ivNotification.visibility = View.VISIBLE
|
||||||
if (item.isFollow) {
|
if (item.isFollow) {
|
||||||
binding.ivNotification.setImageResource(R.drawable.btn_notification_selected)
|
binding.ivNotification.setImageResource(R.drawable.btn_following_big)
|
||||||
binding.ivNotification.setOnClickListener {
|
binding.ivNotification.setOnClickListener {
|
||||||
val index = items.indexOf(item)
|
val index = items.indexOf(item)
|
||||||
val copyItem = item.copy(isFollow = false)
|
val copyItem = item.copy(isFollow = false)
|
||||||
|
@ -42,7 +42,7 @@ class FollowingCreatorAdapter(
|
||||||
onClickUnRegisterNotification(item.creatorId)
|
onClickUnRegisterNotification(item.creatorId)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
binding.ivNotification.setImageResource(R.drawable.btn_notification)
|
binding.ivNotification.setImageResource(R.drawable.btn_follow_big)
|
||||||
binding.ivNotification.setOnClickListener {
|
binding.ivNotification.setOnClickListener {
|
||||||
val index = items.indexOf(item)
|
val index = items.indexOf(item)
|
||||||
val copyItem = item.copy(isFollow = true)
|
val copyItem = item.copy(isFollow = true)
|
||||||
|
|
|
@ -800,7 +800,7 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||||
if (response.creatorId != SharedPreferenceManager.userId) {
|
if (response.creatorId != SharedPreferenceManager.userId) {
|
||||||
binding.ivCreatorFollow.visibility = View.VISIBLE
|
binding.ivCreatorFollow.visibility = View.VISIBLE
|
||||||
if (response.isFollowing) {
|
if (response.isFollowing) {
|
||||||
binding.ivCreatorFollow.setImageResource(R.drawable.btn_select_checked)
|
binding.ivCreatorFollow.setImageResource(R.drawable.btn_following)
|
||||||
binding.ivCreatorFollow.setOnClickListener {
|
binding.ivCreatorFollow.setOnClickListener {
|
||||||
viewModel.creatorUnFollow(
|
viewModel.creatorUnFollow(
|
||||||
creatorId = response.creatorId,
|
creatorId = response.creatorId,
|
||||||
|
@ -808,7 +808,7 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
binding.ivCreatorFollow.setImageResource(R.drawable.btn_plus_round)
|
binding.ivCreatorFollow.setImageResource(R.drawable.btn_follow)
|
||||||
binding.ivCreatorFollow.setOnClickListener {
|
binding.ivCreatorFollow.setOnClickListener {
|
||||||
viewModel.creatorFollow(
|
viewModel.creatorFollow(
|
||||||
creatorId = response.creatorId,
|
creatorId = response.creatorId,
|
||||||
|
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 4.8 KiB |
|
@ -75,7 +75,7 @@
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:contentDescription="@null"
|
android:contentDescription="@null"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:src="@drawable/btn_notification_selected" />
|
tools:src="@drawable/btn_following_big" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||||
|
|
|
@ -294,9 +294,9 @@
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginHorizontal="5.3dp"
|
android:layout_marginHorizontal="5.3dp"
|
||||||
android:layout_toStartOf="@+id/iv_creator_follow"
|
|
||||||
android:layout_toEndOf="@+id/rl_creator_profile"
|
android:layout_toEndOf="@+id/rl_creator_profile"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
@ -331,27 +331,33 @@
|
||||||
tools:text="오늘 라이브 방송은ㅇㄹ너ㅏㅣㅇㄴ럴ㄴ아ㅣㄴㅇ러ㅏㅣ" />
|
tools:text="오늘 라이브 방송은ㅇㄹ너ㅏㅣㅇㄴ럴ㄴ아ㅣㄴㅇ러ㅏㅣ" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:id="@+id/tv_creator_nickname"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="2.7dp"
|
android:gravity="center_vertical"
|
||||||
android:ellipsize="end"
|
android:orientation="horizontal">
|
||||||
android:fontFamily="@font/gmarket_sans_medium"
|
|
||||||
android:lines="1"
|
|
||||||
android:textColor="@color/color_777777"
|
|
||||||
android:textSize="12sp"
|
|
||||||
tools:text="청령" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<ImageView
|
<TextView
|
||||||
android:id="@+id/iv_creator_follow"
|
android:id="@+id/tv_creator_nickname"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_marginTop="2.7dp"
|
||||||
android:layout_centerVertical="true"
|
android:ellipsize="end"
|
||||||
android:contentDescription="@null"
|
android:fontFamily="@font/gmarket_sans_medium"
|
||||||
android:src="@drawable/btn_plus_round" />
|
android:lines="1"
|
||||||
|
android:textColor="@color/color_777777"
|
||||||
|
android:textSize="12sp"
|
||||||
|
tools:text="청령" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_creator_follow"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="5.3dp"
|
||||||
|
android:contentDescription="@null"
|
||||||
|
android:src="@drawable/btn_follow" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:contentDescription="@null"
|
android:contentDescription="@null"
|
||||||
tools:src="@drawable/btn_notification_selected" />
|
tools:src="@drawable/btn_following_big" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_notification_count"
|
android:id="@+id/tv_notification_count"
|
||||||
|
|