콘텐츠 리스트, 라이브 중 전체보기
- 그리드 아이템 사이 간격 수정
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user