skip to Main Content

I want to remove the color around this icon

I tried to learn a lot through videos but failed. I want you to help me I tried to learn a lot through videos but failed. I want you to help me I have been researching for many days and to no avail

2

Answers


  1. Create a custom style in your res/values/styles.xml file:

    <style name="BottomNavigationViewStyle" 
        parent="Widget.Design.BottomNavigationView">
        <item name="android:background">null</item>
    </style>
    

    Apply the custom style to your BottomNavigationView in the layout XML:

    <android.support.design.widget.BottomNavigationView
        android:id="@+id/bottomNavigationView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        app:menu="@menu/bottom_navigation_menu"
        style="@style/BottomNavigationViewStyle"/>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search