라이브 룸 - 라이브 크리에이터 프로필 영역에 팔로우 버튼 제거
This commit is contained in:
@@ -2,8 +2,8 @@ package kr.co.vividnext.sodalive.live.room
|
|||||||
|
|
||||||
import android.animation.Animator
|
import android.animation.Animator
|
||||||
import android.animation.AnimatorListenerAdapter
|
import android.animation.AnimatorListenerAdapter
|
||||||
import android.animation.ValueAnimator
|
|
||||||
import android.animation.ObjectAnimator
|
import android.animation.ObjectAnimator
|
||||||
|
import android.animation.ValueAnimator
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.app.AlertDialog
|
import android.app.AlertDialog
|
||||||
import android.content.ClipData
|
import android.content.ClipData
|
||||||
@@ -921,29 +921,6 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response.creatorId != SharedPreferenceManager.userId) {
|
|
||||||
binding.ivCreatorFollow.visibility = View.VISIBLE
|
|
||||||
if (response.isFollowing) {
|
|
||||||
binding.ivCreatorFollow.setImageResource(R.drawable.btn_following)
|
|
||||||
binding.ivCreatorFollow.setOnClickListener {
|
|
||||||
viewModel.creatorUnFollow(
|
|
||||||
creatorId = response.creatorId,
|
|
||||||
roomId = roomId
|
|
||||||
)
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
binding.ivCreatorFollow.setImageResource(R.drawable.btn_follow)
|
|
||||||
binding.ivCreatorFollow.setOnClickListener {
|
|
||||||
viewModel.creatorFollow(
|
|
||||||
creatorId = response.creatorId,
|
|
||||||
roomId = roomId
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
binding.ivCreatorFollow.visibility = View.GONE
|
|
||||||
}
|
|
||||||
|
|
||||||
isHost = response.creatorId == SharedPreferenceManager.userId
|
isHost = response.creatorId == SharedPreferenceManager.userId
|
||||||
initLikeHeartButton()
|
initLikeHeartButton()
|
||||||
initRouletteSettingButton()
|
initRouletteSettingButton()
|
||||||
|
|||||||
@@ -61,6 +61,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@color/color_ccffffff"
|
android:background="@color/color_ccffffff"
|
||||||
|
android:fontFamily="@font/medium"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:paddingVertical="6.7dp"
|
android:paddingVertical="6.7dp"
|
||||||
android:textColor="@color/color_111111"
|
android:textColor="@color/color_111111"
|
||||||
@@ -69,8 +70,7 @@
|
|||||||
app:layout_constraintEnd_toEndOf="@+id/fl_margin"
|
app:layout_constraintEnd_toEndOf="@+id/fl_margin"
|
||||||
app:layout_constraintStart_toStartOf="@+id/fl_margin"
|
app:layout_constraintStart_toStartOf="@+id/fl_margin"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/fl_margin"
|
app:layout_constraintTop_toBottomOf="@+id/fl_margin"
|
||||||
tools:text="@string/screen_live_room_notice_prefix"
|
tools:text="@string/screen_live_room_notice_prefix" />
|
||||||
android:fontFamily="@font/medium" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/ll_notice"
|
android:id="@+id/ll_notice"
|
||||||
@@ -347,32 +347,17 @@
|
|||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
tools:text="오늘 라이브 방송은ㅇㄹ너ㅏㅣㅇㄴ럴ㄴ아ㅣㄴㅇ러ㅏㅣ" />
|
tools:text="오늘 라이브 방송은ㅇㄹ너ㅏㅣㅇㄴ럴ㄴ아ㅣㄴㅇ러ㅏㅣ" />
|
||||||
|
|
||||||
<LinearLayout
|
<TextView
|
||||||
|
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="5.3dp"
|
android:layout_marginTop="5.3dp"
|
||||||
android:gravity="center_vertical"
|
android:ellipsize="end"
|
||||||
android:orientation="horizontal">
|
android:fontFamily="@font/medium"
|
||||||
|
android:lines="1"
|
||||||
<TextView
|
android:textColor="@color/color_777777"
|
||||||
android:id="@+id/tv_creator_nickname"
|
android:textSize="12sp"
|
||||||
android:layout_width="wrap_content"
|
tools:text="청령" />
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:ellipsize="end"
|
|
||||||
android:fontFamily="@font/medium"
|
|
||||||
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>
|
</LinearLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
@@ -675,6 +660,7 @@
|
|||||||
android:layout_marginBottom="13.3dp"
|
android:layout_marginBottom="13.3dp"
|
||||||
android:background="@drawable/bg_round_corner_16_7_cc555555"
|
android:background="@drawable/bg_round_corner_16_7_cc555555"
|
||||||
android:drawablePadding="6.7dp"
|
android:drawablePadding="6.7dp"
|
||||||
|
android:fontFamily="@font/medium"
|
||||||
android:paddingHorizontal="13.3dp"
|
android:paddingHorizontal="13.3dp"
|
||||||
android:paddingVertical="8dp"
|
android:paddingVertical="8dp"
|
||||||
android:text="@string/screen_live_room_new_chat"
|
android:text="@string/screen_live_room_new_chat"
|
||||||
@@ -683,8 +669,7 @@
|
|||||||
app:drawableStartCompat="@drawable/ic_bottom_white"
|
app:drawableStartCompat="@drawable/ic_bottom_white"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/rl_input_chat"
|
app:layout_constraintBottom_toTopOf="@+id/rl_input_chat"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
android:fontFamily="@font/medium" />
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/rl_input_chat"
|
android:id="@+id/rl_input_chat"
|
||||||
@@ -750,7 +735,7 @@
|
|||||||
app:max="100"
|
app:max="100"
|
||||||
app:progress="0"
|
app:progress="0"
|
||||||
app:shapeType="heart"
|
app:shapeType="heart"
|
||||||
app:textHidden="true"
|
app:textColor="@color/white"
|
||||||
app:textColor="@color/white" />
|
app:textHidden="true" />
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user