parent
c2cf05ef64
commit
4ed97d4600
|
@ -66,7 +66,7 @@ class LiveNowAllActivity : BaseActivity<ActivityLiveNowAllBinding>(
|
|||
}
|
||||
|
||||
recyclerView.layoutManager = GridLayoutManager(this, spanCount)
|
||||
recyclerView.addItemDecoration(GridSpacingItemDecoration(spanCount, spacing, true))
|
||||
recyclerView.addItemDecoration(GridSpacingItemDecoration(spanCount, spacing, false))
|
||||
|
||||
recyclerView.addOnScrollListener(object : RecyclerView.OnScrollListener() {
|
||||
override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) {
|
||||
|
|
|
@ -30,12 +30,12 @@ class LiveNowAllAdapter(
|
|||
crossfade(true)
|
||||
placeholder(R.drawable.ic_place_holder)
|
||||
transformations(RoundedCornersTransformation(4.7f.dpToPx()))
|
||||
}
|
||||
|
||||
val lp = binding.ivCover.layoutParams as ConstraintLayout.LayoutParams
|
||||
lp.width = itemWidth
|
||||
lp.height = itemWidth * 144 / 102
|
||||
binding.ivCover.layoutParams = lp
|
||||
val lp = binding.ivCover.layoutParams as ConstraintLayout.LayoutParams
|
||||
lp.width = itemWidth
|
||||
lp.height = itemWidth * 144 / 102
|
||||
binding.ivCover.layoutParams = lp
|
||||
}
|
||||
|
||||
binding.ivLock.visibility = if (item.isPrivateRoom) {
|
||||
View.VISIBLE
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_audio_content_cover_image"
|
||||
|
@ -19,9 +20,9 @@
|
|||
android:layout_marginStart="2.7dp"
|
||||
android:layout_marginBottom="2.7dp"
|
||||
android:background="@drawable/bg_round_corner_10_b3333333"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:padding="4dp"
|
||||
android:gravity="center"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/iv_audio_content_cover_image"
|
||||
app:layout_constraintStart_toStartOf="@+id/iv_audio_content_cover_image">
|
||||
|
||||
|
@ -29,8 +30,8 @@
|
|||
android:id="@+id/iv_can"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="@null"
|
||||
android:layout_marginEnd="2dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@drawable/ic_card_can_gray" />
|
||||
|
||||
<TextView
|
||||
|
@ -50,8 +51,8 @@
|
|||
android:layout_marginEnd="2.7dp"
|
||||
android:layout_marginBottom="2.7dp"
|
||||
android:background="@drawable/bg_round_corner_10_b3333333"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:padding="4dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/iv_audio_content_cover_image"
|
||||
app:layout_constraintEnd_toEndOf="@+id/iv_audio_content_cover_image">
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
|
|
Loading…
Reference in New Issue