I am designing an application. I had designed the actionbar and under the action I designed a Top bar. Both bars are of color white, so I wanted to place a divider between these bars.
I tried many solutions that are present in this site. None of them worked for me.
This is one of the solution I tried and top bar I created in a .java
class
All I need is a divider between main action bar and top bar.
<style name="MyCustomTheme" parent="Theme.AppCompat.Light">
<item name="android:actionBarStyle">@style/MyActionBarTheme</item>
<!-- <item name="android:divider">@color/dividercolor</item> -->
<item name="android:showDividers">beginning</item>
</style>
<style name="MyActionBarTheme" parent="Widget.AppCompat.Light.ActionBar">
<item name="android:background">#FFFFFFFF</item>
<!-- <item name="android:divider">@drawable/divider</item> -->
</style>