roughike / BottomBar

(Deprecated) A custom view component that mimics the new Material Design Bottom Navigation pattern.
Apache License 2.0
8.43k stars 1.51k forks source link

Badge - set a contentDescription for the badge? #847

Open AmandaRiu opened 6 years ago

AmandaRiu commented 6 years ago

Hello,

My company is using Appium for automated testing. They use the "contentDescription" field for each element on the screen to locate that element during the test scripts. Our Test Developers want to be able to give the actual "badge" a contentDescription, but looking through your code I don't see a way to get the badge object from the Tab so I can set the contentDescription. Is there any way a getBadge() : BottomBarBadge can be added to the BottomBarTab class? Or do you have a better more preferred way of me doing something like this?

Many thanks and I really love your library.

Amanda