Sabarinath
Sabarinath

Reputation: 23

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

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

Upvotes: 0

Views: 606

Answers (1)

jana
jana

Reputation: 266

You have it highlighted in the screenshot:

itemIconTintList

set it by:

navView.itemIconTintList = null

Upvotes: 1

Related Questions