Xml文件  |  60行  |  2.44 KB

<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright 2016 Google Inc.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<resources>
    <style name="text_header" parent="@android:style/Widget.TextView">
        <item name="android:textColor">@color/text_primary</item>
        <item name="android:textSize">@dimen/text_large</item>
    </style>

    <style name="text_normal" parent="@android:style/Widget.TextView">
        <item name="android:textColor">@color/text_primary</item>
        <item name="android:textSize">@dimen/text_medium</item>
    </style>

    <style name="text_small" parent="@android:style/Widget.TextView">
        <item name="android:textColor">@color/text_primary</item>
        <item name="android:textSize">@dimen/text_small</item>
    </style>

    <style name="action_button" parent="@android:style/Widget.ActionButton">
        <item name="android:background">@drawable/bg_action_button</item>
        <item name="android:backgroundTint">@color/primary</item>
        <item name="android:tint">@color/white</item>
        <item name="android:layout_width">40dp</item>
        <item name="android:layout_height">40dp</item>
        <item name="android:padding">8dp</item>
        <item name="android:paddingStart">8dp</item>
        <item name="android:paddingEnd">8dp</item>
        <item name="android:scaleType">fitXY</item>
    </style>

    <style name="connectivity_indicator">
        <item name="android:background">@color/connectivity_indicator_bg</item>
    </style>

    <style name="connectivity_indicator_text">
        <item name="android:textColor">@color/connectivity_indicator_text</item>
        <item name="android:textSize">14sp</item>
    </style>

    <style name="connectivity_indicator_icon">
        <item name="android:tint">@color/connectivity_indicator_text</item>
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">16dp</item>
    </style>
</resources>