CLIFFORD P Y
CLIFFORD P Y

Reputation: 17404

Android Bottom Navigation bar color changes to black after adding com.google.android.material

I just added com.google.android.material into my project , Bottom Navigation Bar color changes to Black. Screenshots are here

Before enter image description here

After adding com.google.android.material:material:1.1.0

enter image description here

Upvotes: 4

Views: 5762

Answers (2)

CLIFFORD P Y
CLIFFORD P Y

Reputation: 17404

Issue solved reference

I changed AppTheme to Theme.MaterialComponents.DayNight

Theme.MaterialComponents 
Theme.MaterialComponents.NoActionBar
Theme.MaterialComponents.Light
Theme.MaterialComponents.Light.NoActionBar
Theme.MaterialComponents.Light.DarkActionBar
Theme.MaterialComponents.DayNight
Theme.MaterialComponents.DayNight.NoActionBar
Theme.MaterialComponents.DayNight.DarkActionBar

Upvotes: 9

EOBD
EOBD

Reputation: 5

The addition probably changed a certain definition of color or style. Try changing the color of the Bottom Navigation Bar to white (#FFFFFF)

Upvotes: -1

Related Questions