Droppers / AnimatedBottomBar

A customizable and easy to use BottomBar navigation view with sleek animations, with support for ViewPager, ViewPager2, NavController, and badges.
MIT License
1.37k stars 109 forks source link

Resource not found exception when an attirube doesn't refer to a color that is in colors.xml #26

Open kuyucuburak opened 3 years ago

kuyucuburak commented 3 years ago

Hi, firstly thank you so much for this great library!

I wanna mention about an important problem. I got the following error when I use AnimatedBottomBar:

109045175-51af5c00-76e4-11eb-836c-3f79fafb3205

App is stoping in the following lines when we track the code: tabColorSelected = context.getColorResCompat(android.R.attr.colorPrimary)

After hours of investigation, I understood the reason of the problem. I changed color attribute in my theme as below:

image

And it worked! We must use color attribute instead of writing the color like #526fa4.

Did you do that intentionally? If yes, could you pleasee write a note about it in the readme. So that other people don't waste time like me to fix this problem :(

Droppers commented 3 years ago

I did not do this intentionally, I will look into this.