fix(live-room): 라이브룸 팔로우 버튼 룩앤필을 정렬한다
This commit is contained in:
@@ -716,17 +716,23 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||
isCreatorFollowNotifyEnabled = true
|
||||
}
|
||||
|
||||
binding.ivCreatorFollow.setImageResource(
|
||||
if (response.isFollowing) {
|
||||
if (isCreatorFollowNotifyEnabled) {
|
||||
R.drawable.btn_following_big
|
||||
} else {
|
||||
R.drawable.btn_following_no_alarm_big
|
||||
}
|
||||
val followTextRes = if (response.isFollowing) {
|
||||
R.string.screen_home_following
|
||||
} else {
|
||||
R.string.screen_home_follow
|
||||
}
|
||||
val followIconRes = if (response.isFollowing) {
|
||||
if (isCreatorFollowNotifyEnabled) {
|
||||
R.drawable.ic_live_creator_follow_alarm
|
||||
} else {
|
||||
R.drawable.btn_follow_big
|
||||
R.drawable.ic_live_creator_follow_no_alarm
|
||||
}
|
||||
)
|
||||
} else {
|
||||
R.drawable.ic_live_creator_follow_plus
|
||||
}
|
||||
|
||||
binding.tvCreatorFollow.text = getString(followTextRes)
|
||||
binding.ivCreatorFollowIcon.setImageResource(followIconRes)
|
||||
|
||||
binding.ivCreatorFollow.setOnClickListener {
|
||||
if (response.isFollowing) {
|
||||
|
||||
BIN
app/src/main/res/drawable-xhdpi/ic_live_creator_follow_alarm.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_live_creator_follow_alarm.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 703 B |
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
BIN
app/src/main/res/drawable-xhdpi/ic_live_creator_follow_plus.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_live_creator_follow_plus.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@@ -526,14 +526,38 @@
|
||||
tools:text="999,999" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
<LinearLayout
|
||||
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:background="@drawable/bg_round_corner_5_3_transparent_bbbbbb"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="8dp"
|
||||
android:paddingVertical="5.3dp"
|
||||
android:visibility="gone"
|
||||
tools:src="@drawable/btn_follow_big" />
|
||||
tools:ignore="RelativeOverlap">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_creator_follow_icon"
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@drawable/ic_live_creator_follow_plus" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_creator_follow"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="6.7dp"
|
||||
android:fontFamily="@font/medium"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/screen_home_follow"
|
||||
android:textColor="@color/color_bbbbbb"
|
||||
android:textSize="11sp"
|
||||
tools:ignore="SmallSp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_view_users"
|
||||
|
||||
Reference in New Issue
Block a user