码迷,mamicode.com
首页 > 移动开发 > 详细

android-support-v7-appcompat

时间:2016-01-06 18:00:15      阅读:108      评论:0      收藏:0      [点我收藏+]

标签:

只要把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" >

  

 

android-support-v7-appcompat

标签:

原文地址:http://www.cnblogs.com/wikiki/p/5106293.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!