以studio为例:
可在清单文件中添加如下的style,但是需要我们注意的是,"Theme.AppCompat.Light.DarkActionBar"是v7包中的内容,所以如果没有引入v7的包会报错。

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
  <!-- Customize your theme here. -->
  <item name="colorPrimary">@color/white</item>
  <item name="colorAccent">@color/black</item>
  <item name="windowActionBar">false</item>
  <item name="windowNoTitle">true</item>
  <item name="android:windowBackground">@color/white</item>
</style>

posted on 2016-06-13 11:46  艾先生  阅读(793)  评论(0)    收藏  举报