I am using Material design library and creating layout using CoordinatorLayout ,AppBarLayout ,RecyclerView and TabLayout .
CoordinatorLayout
RecyclerView
TabLayout
My issu
I've just fixed this bug set background color programmatically
tabLayout.setBackgroundColor(getResources().getColor(R.color.primary));
or in xml
android:background="@color/primary"
But I don't know if there is any problem when you set background color this way