add shimmer for highlight in home screen, update agp to version 7.3.0
This commit is contained in:
@ -166,6 +166,10 @@ class HomeFragment : Fragment() {
|
||||
}
|
||||
|
||||
// disable the shimmer effect and hide the shimmer layouts
|
||||
binding.shimmerLayoutHighlight.apply {
|
||||
stopShimmer()
|
||||
isVisible = false
|
||||
}
|
||||
binding.shimmerLayoutUpNext.apply {
|
||||
stopShimmer()
|
||||
isVisible = false
|
||||
@ -186,9 +190,14 @@ class HomeFragment : Fragment() {
|
||||
stopShimmer()
|
||||
isVisible = false
|
||||
}
|
||||
|
||||
// make highlights layout visible again
|
||||
binding.linearHighlight.isVisible = true
|
||||
}
|
||||
|
||||
private fun bindUiStateLoading() {
|
||||
// hide highlights layout
|
||||
binding.linearHighlight.isVisible = false
|
||||
binding.root.children.filter { it is ShimmerFrameLayout }.forEach {
|
||||
it as ShimmerFrameLayout
|
||||
it.startShimmer()
|
||||
|
Reference in New Issue
Block a user