Skip to content

Instantly share code, notes, and snippets.

@ForceTower
Created June 24, 2021 22:58
Show Gist options
  • Save ForceTower/09b498829dfe59123fef2c4573f4f5e5 to your computer and use it in GitHub Desktop.
Save ForceTower/09b498829dfe59123fef2c4573f4f5e5 to your computer and use it in GitHub Desktop.
Image on bottom nav item
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