summaryrefslogtreecommitdiff
path: root/navit/android/res/values-v21/styles.xml
blob: 3edbb901a9d79a8b3221c79a75d768ed26c8c617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<resources>

    <!--
        Base application theme for API 21+. This theme completely replaces
        NavitBaseTheme from BOTH res/values/styles.xml and
        res/values-v.../styles.xml on API 21+ devices.
    -->
    <style name="NavitBaseTheme" parent="android:Theme.Material">

        <!-- Main theme colors -->
        <!-- your app branding color for the app bar -->
        <item name="android:colorPrimary">@color/navitYellow500</item>
        <!-- darker variant for the status bar and contextual app bars -->
        <item name="android:colorPrimaryDark">@color/navitYellow700</item>
        <!-- theme UI controls like checkboxes and text fields -->
        <item name="android:colorAccent">@color/navitBlue500</item>
    </style>

    <!--
        Main Activity theme for API 21+. This theme completely replaces
        NavitTheme from BOTH res/values/styles.xml and
        res/values-v21/styles.xml on API 21+ devices.
    -->
    <style name="NavitTheme" parent="NavitBaseTheme">

        <!-- API 21 theme customizations can go here. -->

        <!--
            Don't use translucent system bars on API 21 as they are drawn with a semitransparent
            black background which can't be changed.
        -->
        <item name="android:windowTranslucentNavigation">false</item>
        <item name="android:windowTranslucentStatus">false</item>

        <!--
            We could set any semi-transparent color here (or change it in code), but this would not
            be available on API 19/20. Simply specifying full transparency allows us to implement a
            separate mechanism that will work on all versions.
        -->
        <item name="android:navigationBarColor">@android:color/transparent</item>
        <item name="android:statusBarColor">@android:color/transparent</item>

        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
    </style>

</resources>