Xml文件  |  117行  |  7.45 KB

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <attr format="reference" name="mediaRouteAudioTrackDrawable"/>
    <attr format="reference" name="mediaRouteButtonStyle"/>
    <attr format="reference" name="mediaRouteCloseDrawable"/>
    <attr format="reference" name="mediaRouteControlPanelThemeOverlay"/>
    <attr format="reference" name="mediaRouteDefaultIconDrawable"/>
    <attr format="reference" name="mediaRoutePauseDrawable"/>
    <attr format="reference" name="mediaRoutePlayDrawable"/>
    <attr format="reference" name="mediaRouteSpeakerGroupIconDrawable"/>
    <attr format="reference" name="mediaRouteSpeakerIconDrawable"/>
    <attr format="reference" name="mediaRouteStopDrawable"/>
    <attr format="reference" name="mediaRouteTheme"/>
    <attr format="reference" name="mediaRouteTvIconDrawable"/>
    <declare-styleable name="MediaRouteButton">
        <!-- This drawable is a state list where the "checked" state
             indicates active media routing.  Checkable indicates connecting
             and non-checked / non-checkable indicates
             that media is playing to the local device only. -->
        <attr format="reference" name="externalRouteEnabledDrawable"/>
        <!-- Tint to apply to the media route button -->
        <attr format="color" name="mediaRouteButtonTint"/>

        <attr name="android:minWidth"/>
        <attr name="android:minHeight"/>
    </declare-styleable>
    <dimen name="mr_controller_volume_group_list_item_height">68dp</dimen>
    <dimen name="mr_controller_volume_group_list_item_icon_size">24dp</dimen>
    <dimen name="mr_controller_volume_group_list_max_height">288dp</dimen>
    <dimen name="mr_controller_volume_group_list_padding_top">16dp</dimen>
    <dimen name="mr_dialog_fixed_width_major">320dp</dimen>
    <dimen name="mr_dialog_fixed_width_minor">320dp</dimen>
    <integer name="mr_controller_volume_group_list_animation_duration_ms">400</integer>
    <integer name="mr_controller_volume_group_list_fade_in_duration_ms">400</integer>
    <integer name="mr_controller_volume_group_list_fade_out_duration_ms">200</integer>
    <string name="mr_button_content_description">Cast button</string>
    <string name="mr_cast_button_connected">Cast button. Connected</string>
    <string name="mr_cast_button_connecting">Cast button. Connecting</string>
    <string name="mr_cast_button_disconnected">Cast button. Disconnected</string>
    <string name="mr_chooser_searching">Finding devices</string>
    <string name="mr_chooser_title">Cast to</string>
    <string name="mr_controller_album_art">Album art</string>
    <string name="mr_controller_casting_screen">Casting screen</string>
    <string name="mr_controller_close_description">Close</string>
    <string name="mr_controller_collapse_group">Collapse</string>
    <string name="mr_controller_disconnect">Disconnect</string>
    <string name="mr_controller_expand_group">Expand</string>
    <string name="mr_controller_no_info_available">No info available</string>
    <string name="mr_controller_no_media_selected">No media selected</string>
    <string name="mr_controller_pause">Pause</string>
    <string name="mr_controller_play">Play</string>
    <string name="mr_controller_stop">Stop</string>
    <string name="mr_controller_stop_casting">Stop casting</string>
    <string name="mr_controller_volume_slider">Volume slider</string>
    <string name="mr_system_route_name">System</string>
    <string name="mr_user_route_category_name">Devices</string>
    <style name="TextAppearance.MediaRouter.PrimaryText" parent="TextAppearance.AppCompat.Subhead"/>
    <style name="TextAppearance.MediaRouter.SecondaryText" parent="TextAppearance.AppCompat.Body1"/>
    <style name="TextAppearance.MediaRouter.Title" parent="TextAppearance.AppCompat.Title"/>
    <style name="Theme.MediaRouter" parent="ThemeOverlay.AppCompat.Dark">
        <item name="windowNoTitle">true</item>
        <item name="mediaRouteButtonStyle">@style/Widget.MediaRouter.MediaRouteButton</item>

        <item name="mediaRouteCloseDrawable">@drawable/mr_dialog_close_dark</item>
        <item name="mediaRoutePlayDrawable">@drawable/mr_media_play_dark</item>
        <item name="mediaRoutePauseDrawable">@drawable/mr_media_pause_dark</item>
        <item name="mediaRouteStopDrawable">@drawable/mr_media_stop_dark</item>
        <item name="mediaRouteAudioTrackDrawable">@drawable/mr_vol_type_audiotrack_dark</item>
        <item name="mediaRouteDefaultIconDrawable">@drawable/ic_mr_button_disconnected_dark</item>
        <item name="mediaRouteTvIconDrawable">@drawable/ic_vol_type_tv_dark</item>
        <item name="mediaRouteSpeakerIconDrawable">@drawable/ic_vol_type_speaker_dark</item>
        <item name="mediaRouteSpeakerGroupIconDrawable">@drawable/ic_vol_type_speaker_group_dark</item>

        <item name="mediaRouteControlPanelThemeOverlay">@null</item>
    </style>
    <style name="Theme.MediaRouter.Light" parent="ThemeOverlay.AppCompat.Light">
        <item name="windowNoTitle">true</item>
        <item name="mediaRouteButtonStyle">@style/Widget.MediaRouter.Light.MediaRouteButton</item>

        <item name="mediaRouteCloseDrawable">@drawable/mr_dialog_close_light</item>
        <item name="mediaRoutePlayDrawable">@drawable/mr_media_play_light</item>
        <item name="mediaRoutePauseDrawable">@drawable/mr_media_pause_light</item>
        <item name="mediaRouteStopDrawable">@drawable/mr_media_stop_light</item>
        <item name="mediaRouteAudioTrackDrawable">@drawable/mr_vol_type_audiotrack_light</item>
        <item name="mediaRouteDefaultIconDrawable">@drawable/ic_mr_button_grey</item>
        <item name="mediaRouteTvIconDrawable">@drawable/ic_vol_type_tv_light</item>
        <item name="mediaRouteSpeakerIconDrawable">@drawable/ic_vol_type_speaker_light</item>
        <item name="mediaRouteSpeakerGroupIconDrawable">@drawable/ic_vol_type_speaker_group_light</item>

        <item name="mediaRouteControlPanelThemeOverlay">@null</item>
    </style>
    <style name="Theme.MediaRouter.Light.DarkControlPanel">
        <item name="mediaRouteControlPanelThemeOverlay">@style/ThemeOverlay.MediaRouter.Dark</item>
    </style>
    <style name="Theme.MediaRouter.LightControlPanel">
        <item name="mediaRouteControlPanelThemeOverlay">@style/ThemeOverlay.MediaRouter.Light</item>
    </style>
    <style name="ThemeOverlay.MediaRouter.Dark" parent="ThemeOverlay.AppCompat.Dark">
        <item name="mediaRoutePlayDrawable">@drawable/mr_media_play_dark</item>
        <item name="mediaRoutePauseDrawable">@drawable/mr_media_pause_dark</item>
        <item name="mediaRouteStopDrawable">@drawable/mr_media_stop_dark</item>
        <item name="mediaRouteAudioTrackDrawable">@drawable/mr_vol_type_audiotrack_dark</item>

    </style>
    <style name="ThemeOverlay.MediaRouter.Light" parent="ThemeOverlay.AppCompat.Light">
        <item name="mediaRoutePlayDrawable">@drawable/mr_media_play_light</item>
        <item name="mediaRoutePauseDrawable">@drawable/mr_media_pause_light</item>
        <item name="mediaRouteStopDrawable">@drawable/mr_media_stop_light</item>
        <item name="mediaRouteAudioTrackDrawable">@drawable/mr_vol_type_audiotrack_light</item>
    </style>
    <style name="Widget.MediaRouter.Light.MediaRouteButton" parent="Widget.AppCompat.Light.ActionButton">
        <item name="externalRouteEnabledDrawable">@drawable/mr_button_light</item>
    </style>
    <style name="Widget.MediaRouter.MediaRouteButton" parent="Widget.AppCompat.ActionButton">
        <item name="externalRouteEnabledDrawable">@drawable/mr_button_dark</item>
    </style>
</resources>