Zum Inhalt springen

Android Training/Supporting Different Platform Versions/de: Unterschied zwischen den Versionen

Die Seite wurde neu angelegt: „Um ein Thema für deine komplette App anzuwenden (alle Activities), füge das <code>android:theme</code> Attribut zu dem <code>[http://developer.android.com/gu…“
(Die Seite wurde neu angelegt: „Android Training: Verschiedene Plattformversionen unterstützen“)
 
(Die Seite wurde neu angelegt: „Um ein Thema für deine komplette App anzuwenden (alle Activities), füge das <code>android:theme</code> Attribut zu dem <code>[http://developer.android.com/gu…“)
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 46: Zeile 46:
<activity android:theme="@style/CustomTheme">
<activity android:theme="@style/CustomTheme">
</syntaxhighlight>
</syntaxhighlight>
To apply a theme to your entire app (all activities), add the <code>android:theme</code> attribute to the <code>[http://developer.android.com/guide/topics/manifest/application-element.html <application>]</code> element:
Um ein Thema für deine komplette App anzuwenden (alle Activities), füge das <code>android:theme</code> Attribut zu dem <code>[http://developer.android.com/guide/topics/manifest/application-element.html <application>]</code> Element hinzu:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<application android:theme="@style/CustomTheme">
<application android:theme="@style/CustomTheme">
</syntaxhighlight>
</syntaxhighlight>
For more about creating and using themes, read the [http://developer.android.com/guide/topics/ui/themes.html Styles and Themes] guide.
Für mehr über das Erstellen und Benutzen von Themes, lies den [http://developer.android.com/guide/topics/ui/themes.html Styles und Themes] Guide.


{{TNT|Android Training/Attribution}}
{{TNT|Android Training/Attribution}}
11.008

Bearbeitungen

Cookies helfen uns bei der Bereitstellung von Android Wiki. Durch die Nutzung von Android Wiki erklärst du dich damit einverstanden, dass wir Cookies speichern.