MediaControlView2: Final Settings UX addition
This CL does the following things:
1. Make the check button visibility in Settings window dynamic
2. Send command to VideoView2 when choosing item for Subtitle, Audio
Track, and Playback Speed.
3. Make pressing Subtitle & Video Quality buttons open Settings
window.
4. Place Subtitle & Video Quality buttons outside the Settings
window.
Also, this CL remove Aspect Ratio button (function support has been punted)
Bug: 73703113
Test: manually run VideoViewTest.apk
Change-Id: I9c8ca3f7e3c6aae8c69ca6b6ff0973a3377a88fa
diff --git a/packages/MediaComponents/res/values/arrays.xml b/packages/MediaComponents/res/values/arrays.xml
new file mode 100644
index 0000000..1187320
--- /dev/null
+++ b/packages/MediaComponents/res/values/arrays.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2018 The Android Open Source Project
+
+ 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>
+ <integer-array name="speed_multiplied_by_100">
+ <item>25</item>
+ <item>50</item>
+ <item>75</item>
+ <item>100</item>
+ <item>125</item>
+ <item>150</item>
+ <item>200</item>
+ </integer-array>
+</resources>
\ No newline at end of file