Hi guys,

I have been trying BottomNavigationView released in API 25. I am struggling 
with notification badge on bottom navigation item. I have a selector 
drawable where I have added checked true and checked false states with 
greyed out drawable which has a BLUE dot on it. The purpose is to show blue 
dot when there is a certain activity. But when user navigates to other 
navigation item the whole menu button turns grey and the dot as well. I 
believe tint is applied to the image which is the reason having a different 
colour dot as part of the icon is not possible. Is there any alternate way 
to achieve this?

<android.support.design.widget.BottomNavigationView
    android:id="@+id/bottom_navigation"
    android:layout_width="match_parent"
    android:layout_height="?attr/actionBarSize"
    android:background="@color/white"
    app:itemIconTint="@color/selector_navigation_icon_color"
    app:itemTextColor="@color/selector_navigation_icon_color"
    android:layout_gravity="bottom"
    app:menu="@menu/home_navigation_items">
</android.support.design.widget.BottomNavigationView>

That is how I am using it. Removing itemIconTint does not help. 

On android developers I have found nothing and it being pretty new nothing is 
available on the web as well.

Any idea, any one?

Cheers


-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/22b8694c-afbb-40f7-8686-22a1227b9e47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to