android public method setItemIconTintList() in BottomNavigationView is not available (android studio 4.1, Kotlin)

563 Views Asked by At

I am trying to set the BottomNavigation Icon tint to null

I am using Android Studio 4.1 and Kotlin as my language and created the bottom navigation from the android create project

val navView: BottomNavigationView = findViewById(R.id.nav_view)

But when i try to declare null to setItemIconTintList() its not available

enter image description here

I am new to this please help me out how to set the tint to null

1

There are 1 best solutions below

0
On BEST ANSWER

You have it highlighted in the screenshot:

itemIconTintList

set it by:

navView.itemIconTintList = null