android-support-v7-appcompat

只要把values-v14下的styles.xml修改 用在4.0以上的设备

    <!--
        Base application theme for API 14+. This theme completely replaces
        AppBaseTheme from BOTH res/values/styles.xml and
        res/values-v11/styles.xml on API 14+ devices.
    -->
    <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
        <!-- API 14 theme customizations can go here. -->

    </style>

 

把values-v11下的styles.xml修改    3.0以上的设备

<resources>

    <!--
        Base application theme for API 11+. This theme completely replaces
        AppBaseTheme from res/values/styles.xml on API 11+ devices.
    -->
    <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
        <!-- API 11 theme customizations can go here. -->

    </style>

</resources>

  

普通的values下使用

<style name="AppBaseTheme" parent="android:Theme.Light">

  

主题风格去掉导航栏

    <!-- Application theme. -->
    <style name="AppTheme" parent="AppBaseTheme">
        <item name="android:windowNoTitle">true</item>
        <!-- All customizations that are NOT specific to a particular API-level can go here. -->
    </style>


<application
  android:name="com.xinhua.schome.base.App"
  android:allowBackup="true"
  android:icon="@drawable/ic_launcher"
  android:label="@string/app_name"
  android:theme="@style/AppTheme" >

  

 

posted @ 2016-01-06 17:08  wikiki  阅读(305)  评论(0编辑  收藏  举报