I am new to Android material design concept. I created a new project and added a material theme with AppCompat support for pre-Lellipop versions, but my problem is that in Lollipop it displays the ActionBar aka Toolbar, but if I run the same in pre-lollipop it does not display the ActionBar.
Should I just use the toolbar control everywhere in my layout, regardless of the version of the API?
Edited by:
<style name="AppTheme" parent="Theme.AppCompat.Light"> <item name="colorPrimary">@color/primary_dark</item> <item name="colorPrimaryDark">@color/primary_dark</item> </style> <style name="AppTheme" parent="android:Theme.Material.Light"> <item name="android:colorPrimary">@color/primary</item> <item name="android:colorPrimaryDark">@color/primary_dark</item> </style>
source share