Created
June 24, 2021 22:58
-
-
Save ForceTower/09b498829dfe59123fef2c4573f4f5e5 to your computer and use it in GitHub Desktop.
Image on bottom nav item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun setupProfileOnBottomNav() { | |
val menuView = binding.bottomNav[0] as BottomNavigationMenuView | |
val itemView = menuView[2] as BottomNavigationItemView | |
val icon = itemView.findViewById<ImageView>(R.id.icon) | |
Glide.with(this) | |
.load("https://avatars1.githubusercontent.com/u/9421614?s=460&u=499efd7b66284bd4436bc74dd982c52f9e076740&v=4") | |
.circleCrop() | |
.into(icon) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment