您的位置:首页 > 移动开发

Apply a theme to an Activity or application

2015-06-26 13:21 369 查看

Apply a theme to an Activity or application

To set a theme for all the activities of your application, open the
AndroidManifest.xml
file andedit the
<application>
tag to include the
android:theme
attribute with the style name. For example:

<application android:theme="@style/CustomTheme">

If you want a theme applied to just one Activity in your application, then add the
android:theme
attribute to the
<activity>
tag instead.
http://developer.android.com/guide/topics/ui/themes.html#ApplyATheme
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: