1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2016 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<resources> 17 18 <!-- Must be kept in sync with AspectRatioFrameLayout --> 19 <attr name="resize_mode" format="enum"> 20 <enum name="fit" value="0"/> 21 <enum name="fixed_width" value="1"/> 22 <enum name="fixed_height" value="2"/> 23 <enum name="fill" value="3"/> 24 <enum name="zoom" value="4"/> 25 </attr> 26 27 <!-- Must be kept in sync with PlayerView --> 28 <attr name="surface_type" format="enum"> 29 <enum name="none" value="0"/> 30 <enum name="surface_view" value="1"/> 31 <enum name="texture_view" value="2"/> 32 <enum name="spherical_gl_surface_view" value="3"/> 33 <enum name="video_decoder_gl_surface_view" value="4"/> 34 </attr> 35 36 <!-- Must be kept in sync with RepeatModeUtil --> 37 <attr name="repeat_toggle_modes"> 38 <flag name="none" value="0"/> 39 <flag name="one" value="1"/> 40 <flag name="all" value="2"/> 41 </attr> 42 43 <!-- PlayerControlView attributes --> 44 <attr name="show_timeout" format="integer"/> 45 <attr name="rewind_increment" format="integer"/> 46 <attr name="fastforward_increment" format="integer"/> 47 <attr name="show_shuffle_button" format="boolean"/> 48 <attr name="time_bar_min_update_interval" format="integer"/> 49 <attr name="controller_layout_id" format="reference"/> 50 51 <!-- DefaultTimeBar attributes --> 52 <attr name="bar_height" format="dimension"/> 53 <attr name="touch_target_height" format="dimension"/> 54 <attr name="ad_marker_width" format="dimension"/> 55 <attr name="scrubber_enabled_size" format="dimension"/> 56 <attr name="scrubber_disabled_size" format="dimension"/> 57 <attr name="scrubber_dragged_size" format="dimension"/> 58 <attr name="scrubber_drawable" format="reference"/> 59 <attr name="played_color" format="color"/> 60 <attr name="scrubber_color" format="color"/> 61 <attr name="buffered_color" format="color"/> 62 <attr name="unplayed_color" format="color"/> 63 <attr name="ad_marker_color" format="color"/> 64 <attr name="played_ad_marker_color" format="color"/> 65 66 <declare-styleable name="PlayerView"> 67 <attr name="use_artwork" format="boolean"/> 68 <attr name="shutter_background_color" format="color"/> 69 <attr name="default_artwork" format="reference"/> 70 <attr name="use_controller" format="boolean"/> 71 <attr name="hide_on_touch" format="boolean"/> 72 <attr name="hide_during_ads" format="boolean"/> 73 <attr name="auto_show" format="boolean"/> 74 <attr name="show_buffering" format="enum"> 75 <enum name="never" value="0"/> 76 <enum name="when_playing" value="1"/> 77 <enum name="always" value="2"/> 78 </attr> 79 <attr name="keep_content_on_player_reset" format="boolean"/> 80 <attr name="use_sensor_rotation" format="boolean"/> 81 <attr name="player_layout_id" format="reference"/> 82 <attr name="surface_type"/> 83 <!-- AspectRatioFrameLayout attributes --> 84 <attr name="resize_mode"/> 85 <!-- PlayerControlView attributes --> 86 <attr name="show_timeout"/> 87 <attr name="rewind_increment"/> 88 <attr name="fastforward_increment"/> 89 <attr name="repeat_toggle_modes"/> 90 <attr name="show_shuffle_button"/> 91 <attr name="time_bar_min_update_interval"/> 92 <attr name="controller_layout_id"/> 93 <!-- DefaultTimeBar attributes --> 94 <attr name="bar_height"/> 95 <attr name="touch_target_height"/> 96 <attr name="ad_marker_width"/> 97 <attr name="scrubber_enabled_size"/> 98 <attr name="scrubber_disabled_size"/> 99 <attr name="scrubber_dragged_size"/> 100 <attr name="scrubber_drawable"/> 101 <attr name="played_color"/> 102 <attr name="scrubber_color"/> 103 <attr name="buffered_color" /> 104 <attr name="unplayed_color"/> 105 <attr name="ad_marker_color"/> 106 <attr name="played_ad_marker_color"/> 107 </declare-styleable> 108 109 <declare-styleable name="AspectRatioFrameLayout"> 110 <attr name="resize_mode"/> 111 </declare-styleable> 112 113 <declare-styleable name="PlayerControlView"> 114 <attr name="show_timeout"/> 115 <attr name="rewind_increment"/> 116 <attr name="fastforward_increment"/> 117 <attr name="repeat_toggle_modes"/> 118 <attr name="show_shuffle_button"/> 119 <attr name="time_bar_min_update_interval"/> 120 <attr name="controller_layout_id"/> 121 <!-- DefaultTimeBar attributes --> 122 <attr name="bar_height"/> 123 <attr name="touch_target_height"/> 124 <attr name="ad_marker_width"/> 125 <attr name="scrubber_enabled_size"/> 126 <attr name="scrubber_disabled_size"/> 127 <attr name="scrubber_dragged_size"/> 128 <attr name="scrubber_drawable"/> 129 <attr name="played_color"/> 130 <attr name="scrubber_color"/> 131 <attr name="buffered_color" /> 132 <attr name="unplayed_color"/> 133 <attr name="ad_marker_color"/> 134 <attr name="played_ad_marker_color"/> 135 </declare-styleable> 136 137 <declare-styleable name="DefaultTimeBar"> 138 <attr name="bar_height"/> 139 <attr name="touch_target_height"/> 140 <attr name="ad_marker_width"/> 141 <attr name="scrubber_enabled_size"/> 142 <attr name="scrubber_disabled_size"/> 143 <attr name="scrubber_dragged_size"/> 144 <attr name="scrubber_drawable"/> 145 <attr name="played_color"/> 146 <attr name="scrubber_color"/> 147 <attr name="buffered_color" /> 148 <attr name="unplayed_color"/> 149 <attr name="ad_marker_color"/> 150 <attr name="played_ad_marker_color"/> 151 </declare-styleable> 152 153</resources> 154