탐색 - 인기 크리에이터 설명 글 UI 수정
This commit is contained in:
parent
e6b8e55966
commit
3e7d06a2aa
|
@ -34,7 +34,7 @@ class AudioContentRankingAllViewModel(
|
|||
private var isLast = false
|
||||
|
||||
fun getAudioContentRanking() {
|
||||
if (!_isLoading.value!! && !isLast) {
|
||||
if (!_isLoading.value!! && !isLast && page <= 5) {
|
||||
_isLoading.value = true
|
||||
compositeDisposable.add(
|
||||
repository.getContentRanking(
|
||||
|
@ -53,7 +53,6 @@ class AudioContentRankingAllViewModel(
|
|||
|
||||
if (it.data.items.isNotEmpty()) {
|
||||
page += 1
|
||||
isLast = false
|
||||
_contentRankingItemsLiveData.value = it.data.items
|
||||
} else {
|
||||
isLast = true
|
||||
|
|
|
@ -59,10 +59,10 @@ class ExplorerAdapter(
|
|||
|
||||
private fun setDesc(item: GetExplorerSectionResponse) {
|
||||
if (item.desc != null) {
|
||||
binding.tvDesc.visibility = View.VISIBLE
|
||||
binding.llDesc.visibility = View.VISIBLE
|
||||
binding.tvDesc.text = item.desc
|
||||
} else {
|
||||
binding.tvDesc.visibility = View.GONE
|
||||
binding.llDesc.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,21 +18,36 @@
|
|||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="인기 급상승" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_desc"
|
||||
android:layout_width="0dp"
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_desc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:fontFamily="@font/gmarket_sans_medium"
|
||||
android:paddingHorizontal="13.3dp"
|
||||
android:textColor="@color/color_777777"
|
||||
android:textSize="11sp"
|
||||
android:visibility="gone"
|
||||
android:layout_marginTop="13.3dp"
|
||||
android:background="@color/color_222222"
|
||||
app:layout_constraintEnd_toEndOf="@+id/tv_title"
|
||||
app:layout_constraintStart_toStartOf="@+id/tv_title"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tv_title"
|
||||
tools:ignore="SmallSp"
|
||||
tools:text="큐레이션" />
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:paddingVertical="8dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_desc"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/gmarket_sans_bold"
|
||||
android:textColor="@color/color_eeeeee"
|
||||
android:textSize="14.7sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:fontFamily="@font/gmarket_sans_light"
|
||||
android:text="※ 인기 크리에이터의 순위는 매주 업데이트됩니다."
|
||||
android:textColor="@color/color_bbbbbb"
|
||||
android:textSize="13.3sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_explorer_section"
|
||||
|
@ -43,5 +58,5 @@
|
|||
android:paddingHorizontal="13.3dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tv_desc" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/ll_desc" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
|
Loading…
Reference in New Issue