Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
ActionBarCompat-Styled / res / values /

styles.xml

       
        1
       
       
        <?xml version="1.0" encoding="utf-8"?>
       
       
        2
       
       
        <!--
       
       
        3
       
       
        Copyright 2013 The Android Open Source Project
       
       
        4
       
       
       
       
        5
       
       
        Licensed under the Apache License, Version 2.0 (the "License");
       
       
        6
       
       
        you may not use this file except in compliance with the License.
       
       
        7
       
       
        You may obtain a copy of the License at
       
       
        8
       
       
       
       
        9
       
       
        http://www.apache.org/licenses/LICENSE-2.0
       
       
        10
       
       
       
       
        11
       
       
        Unless required by applicable law or agreed to in writing, software
       
       
        12
       
       
        distributed under the License is distributed on an "AS IS" BASIS,
       
       
        13
       
       
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
       
        14
       
       
        See the License for the specific language governing permissions and
       
       
        15
       
       
        limitations under the License.
       
       
        16
       
       
        -->
       
       
        17
       
       
       
       
        18
       
       
        <resources>
       
       
        19
       
       
       
       
        20
       
       
        <!--
       
       
        21
       
       
        This is the styled theme.
       
       
        22
       
       
       
       
        23
       
       
        It extends from Theme.AppCompat.Light, but it could extend from any of
       
       
        24
       
       
        the Theme.AppCompat themes depending on your color scheme. This theme can be applied to
       
       
        25
       
       
        your application or individual activities in the AndroidManifest.xml. In this sample it is
       
       
        26
       
       
        set on the application.
       
       
        27
       
       
       
       
        28
       
       
        This differs from the version of this theme in 'res/values-v14', as not all of the
       
       
        29
       
       
        necessary attributes are available in the android: namespace on older versions of Android.
       
       
        30
       
       
        This means that for certain attributes we must set the attributes provided in
       
       
        31
       
       
        ActionBarCompat's namespace instead.
       
       
        32
       
       
        -->
       
       
        33
       
       
       
       
        34
       
       
        <style name="Theme.Styled" parent="@style/Theme.AppCompat.Light">
       
       
        35
       
       
        <item name="actionBarItemBackground">@drawable/selectable_background</item>
       
       
        36
       
       
        <item name="actionBarTabStyle">@style/Widget.Styled.ActionBar.TabView</item>
       
       
        37
       
       
        <item name="actionBarStyle">@style/Widget.Styled.ActionBar</item>
       
       
        38
       
       
        <item name="actionDropDownStyle">@style/Widget.Styled.Spinner.DropDown.ActionBar</item>
       
       
        39
       
       
        <item name="dropDownListViewStyle">@style/Widget.Styled.ListView.DropDown</item>
       
       
        40
       
       
        <item name="popupMenuStyle">@style/Widget.Styled.PopupMenu</item>
       
       
        41
       
       
        </style>
       
       
        42
       
       
       
       
        43
       
       
        <style name="Widget.Styled.ActionBar" parent="@style/Widget.AppCompat.Light.ActionBar.Solid">
       
       
        44
       
       
        <item name="background">@drawable/ab_solid_styled</item>
       
       
        45
       
       
        <item name="backgroundStacked">@drawable/ab_stacked_solid_styled</item>
       
       
        46
       
       
        <item name="backgroundSplit">@drawable/ab_bottom_solid_styled</item>
       
       
        47
       
       
        <item name="progressBarStyle">@style/Widget.Styled.ProgressBar.Horizontal</item>
       
       
        48
       
       
        </style>
       
       
        49
       
       
       
       
        50
       
       
       
       
        51
       
       
        <!--
       
       
        52
       
       
        For the following styles, the attributes are available in the android namespace which
       
       
        53
       
       
        means that we can set them here for all platforms (v7 through to the latest).
       
       
        54
       
       
        -->
       
       
        55
       
       
       
       
        56
       
       
        <style name="Widget.Styled.ActionBar.TabView"
       
       
        57
       
       
        parent="@style/Widget.AppCompat.Light.ActionBar.TabView">
       
       
        58
       
       
        <item name="android:background">@drawable/tab_indicator_ab</item>
       
       
        59
       
       
        </style>
       
       
        60
       
       
       
       
        61
       
       
        <style name="Widget.Styled.Spinner.DropDown.ActionBar"
       
       
        62
       
       
        parent="@style/Widget.AppCompat.Light.Spinner.DropDown.ActionBar">
       
       
        63
       
       
        <item name="android:background">@drawable/spinner_background_ab</item>
       
       
        64
       
       
        <item name="android:popupBackground">@drawable/menu_dropdown_panel_styled</item>
       
       
        65
       
       
        <item name="android:dropDownSelector">@drawable/selectable_background</item>
       
       
        66
       
       
        </style>
       
       
        67
       
       
       
       
        68
       
       
        <style name="Widget.Styled.ProgressBar.Horizontal"
       
       
        69
       
       
        parent="@style/Widget.AppCompat.ProgressBar.Horizontal">
       
       
        70
       
       
        <item name="android:progressDrawable">@drawable/progress_horizontal</item>
       
       
        71
       
       
        </style>
       
       
        72
       
       
       
       
        73
       
       
        <style name="Widget.Styled.PopupMenu" parent="@style/Widget.AppCompat.Light.PopupMenu">
       
       
        74
       
       
        <item name="android:popupBackground">@drawable/menu_dropdown_panel_styled</item>
       
       
        75
       
       
        </style>
       
       
        76
       
       
       
       
        77
       
       
        <style name="Widget.Styled.ListView.DropDown"
       
       
        78
       
       
        parent="@style/Widget.AppCompat.Light.ListView.DropDown">
       
       
        79
       
       
        <item name="android:listSelector">@drawable/selectable_background</item>
       
       
        80
       
       
        </style>
       
       
        81
       
       
       
       
        82
       
       
        </resources>