Skip to content

Commit

Permalink
Feat: Implement Shimmer while user details are being loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
kmanikanta335 committed Nov 20, 2023
1 parent 3a2ec77 commit 7cd05d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ dependencies {
implementation "androidx.compose.material3:material3:$rootProject.materialVersion"
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$rootProject.lifecycleVersion"

// Shimmer effect dependencies
// Shimmer effect
implementation "com.facebook.shimmer:shimmer:$rootProject.shimmerVersion"

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,7 @@ class HomeOldFragment : BaseFragment(), OnRefreshListener {
private fun userImageClicked() {
startActivity(Intent(activity, UserProfileActivity::class.java))
}

/**
* Stops the Shimmer effect and shows user details
*/

private fun stopShimmerEffect(){
binding.shimmerViewContainer.stopShimmer()
binding.detailsOfCustomer.visibility = View.VISIBLE
Expand Down

0 comments on commit 7cd05d4

Please sign in to comment.