Xml文件  |  44行  |  2.31 KB

<?xml version="1.0" encoding="utf-8"?>
<resources>

    <attr name="setup_wizard_navbar_bg_color" format="color" />
    <attr name="setup_wizard_navbar_text_color" format="color" />
    <attr name="setup_wizard_navbar_theme" format="reference" />

    <style name="setup_wizard_navbar_style">
        <item name="android:orientation">horizontal</item>
        <item name="android:layout_height">@dimen/setup_wizard_navbar_height</item>
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_alignParentBottom">true</item>
        <item name="android:background">?attr/setup_wizard_navbar_bg_color</item>
        <item name="android:paddingStart">@dimen/setup_wizard_navbar_padding_sides</item>
        <item name="android:paddingEnd">@dimen/setup_wizard_navbar_padding_sides</item>
    </style>

    <style name="setup_wizard_navbar_theme_dark">
        <item name="setup_wizard_navbar_bg_color">@color/setup_wizard_navbar_bg_dark</item>
        <item name="setup_wizard_navbar_text_color">@color/setup_wizard_navbar_text_dark</item>
    </style>

    <style name="setup_wizard_navbar_theme_light">
        <item name="setup_wizard_navbar_bg_color">@color/setup_wizard_navbar_bg_light</item>
        <item name="setup_wizard_navbar_text_color">@color/setup_wizard_navbar_text_light</item>
    </style>

    <style name="setup_wizard_navbar_button_style" parent="@android:style/Widget.Material.Button.Borderless">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">match_parent</item>
        <item name="android:layout_weight">0</item>
        <item name="android:background">@drawable/setup_wizard_navbar_btn_bg</item>
        <item name="android:drawablePadding">@dimen/setup_wizard_navbar_button_drawable_padding</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:minWidth">0dp</item>
        <item name="android:paddingEnd">@dimen/setup_wizard_navbar_button_padding_sides</item>
        <item name="android:paddingStart">@dimen/setup_wizard_navbar_button_padding_sides</item>
        <item name="android:textAllCaps">true</item>
        <item name="android:textColor">?attr/setup_wizard_navbar_text_color</item>
        <item name="android:textSize">@dimen/setup_wizard_navbar_text_size</item>
    </style>

</resources>