How to set TabLayout background to transparent

后端 未结 3 1607
故里飘歌
故里飘歌 2021-01-18 18:08

I need to change TabLayout (extending HorizontalScrollView) background to transparent without changing primary color from styles. If I set a background to #00000000 it beco

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-18 18:48

    Use:

     android:background="@android:color/transparent"
    

    also in the AppBarLayout. to remove the shadow to make look better you can remove the elevation of the AppBarlayout with:

     app:elevation="0dp"
    

提交回复
热议问题