Unable to see Tab Indicator in TabLayout design support library

前端 未结 6 1720
北海茫月
北海茫月 2021-02-07 14:38

I am using Material design library and creating layout using CoordinatorLayout ,AppBarLayout ,RecyclerView and TabLayout .

My issu

6条回答
  •  盖世英雄少女心
    2021-02-07 15:04

    I think it's bug on Design Support library. that When You apply both property at the same time

    app:tabBackground="@color/tab_bg"
    app:tabIndicatorColor="@color/tab_indicator"
    

    the background color overlap the tab indicator. that's why the tab indicator is not visible.

    If you remove tabBackground color property then you can see the indicator.

    [Update on 25-06-2015]

    As I said it's bug on Design Support library. I reported it to android bug source. here is the refrence https://code.google.com/p/android/issues/detail?id=176540.

    So status for this is issue is FutureRelease so bug is fixed. And it will come in future library.

    [Update 20-07-2015]

    The bug is fixed and Released in v 22.2.1. you can also check it on above link.

提交回复
热议问题