Ich bin neu in Android Material Design Concept. Ich habe ein neues Projekt erstellt und Material mit AppCompat-Unterstützung für Pre-Lollipop-Versionen hinzugefügt, aber mein Problem ist, in Lollipop zeigt es die ActionBar aka Toolbar, aber wenn ich das gleiche in Pre-Lollipop ausführen zeigt es nicht die ActionBar.Android Material Design AppCompat
Muss ich die Symbolleistensteuerung überall in meinem Layout verwenden, unabhängig von der API-Version?
Edited:
<!-- Base application theme for prelollipop -->
<style name="AppTheme" parent="Theme.AppCompat.Light">
<item name="colorPrimary">@color/primary_dark</item>
<item name="colorPrimaryDark">@color/primary_dark</item>
</style>
<!-- Material theme for lollipop-->
<style name="AppTheme" parent="android:Theme.Material.Light">
<item name="android:colorPrimary">@color/primary</item>
<item name="android:colorPrimaryDark">@color/primary_dark</item>
</style>
https://github.com/antoniolg/MaterialEverywhere schauen Sie sich das an. –
Veröffentlichen Sie Ihr Layout, Ihren Stil und Ihren Code –
@Gabriele Mariotti Keine große Sache. Es war nur ein Standardprojekt, um mit dem Thema Material herumzuspielen, als eine Überprüfung, bevor ich es in meine eigentliche App implementiere. Frage ist für Sie bearbeitet – Kirk