You need to apply one of available themes to your application. You can do itAndroidManifest.xml, just useandroid:themeattribute:

android:theme="@android :style/Theme.Holo"if you want dark theme orandroid:theme="@android :style/Theme.Holo.Light"if you want light theme.

If you use put this app in one of your<activity>tags, only corresponding activity will be styled, if you put it in<application>tag, style will be applied to the whole application.

Of course, you can define your own style instyles.xml:

<style name="AppTheme" parent="android:Theme.Light"> <item name="android:windowBackground">@drawable/bg_window</item> <item name="android:windowActionBar">false</item> <item name="android:windowNoTitle">true</item> </style>

Here's the example ofAndroidManifest.xml:

<application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name=".Activity1" android:theme="@style/AppTheme2" /> <activity android:name=".Activity2" />

In this example,AppTheme2will be applied only toActivity1, whileAppThemewill be applied to all other activities.

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)性能优化典范
  2. Android学习之如何配置使用Android(安卓)
  3. Android中消息处理机制研究
  4. Android获取其他包的Context实例,然后调用
  5. android的网络通讯(Http通讯)封装类
  6. Servlet中POST服务延时返回数据
  7. UI设计基础知识点之Android设计规范篇
  8. Android(安卓)Studio开发使用SQLite3数据
  9. 基于Android(安卓)Webview的Hybrid App开
  10. Android(安卓)手机获取手机号实现方法