Jaewan Kim | 8f584b8 | 2016-03-22 22:16:59 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | ** |
| 4 | ** Copyright 2016, The Android Open Source Project |
| 5 | ** |
| 6 | ** Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | ** you may not use this file except in compliance with the License. |
| 8 | ** You may obtain a copy of the License at |
| 9 | ** |
| 10 | ** http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | ** |
| 12 | ** Unless required by applicable law or agreed to in writing, software |
| 13 | ** distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | ** See the License for the specific language governing permissions and |
| 16 | ** limitations under the License. |
| 17 | */ |
| 18 | --> |
| 19 | |
| 20 | <com.android.systemui.tv.pip.PipControlsView |
| 21 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 22 | android:id="@+id/pip_controls" |
| 23 | android:layout_width="wrap_content" |
| 24 | android:layout_height="wrap_content" |
| 25 | android:gravity="center" |
| 26 | android:orientation="horizontal"> |
| 27 | |
| 28 | <LinearLayout |
| 29 | android:layout_width="100dp" |
| 30 | android:layout_height="wrap_content" |
| 31 | android:orientation="vertical" |
| 32 | android:gravity="center"> |
| 33 | |
| 34 | <ImageView android:id="@+id/full_button" |
| 35 | android:layout_width="wrap_content" |
| 36 | android:layout_height="wrap_content" |
| 37 | android:focusable="true" |
| 38 | android:src="@drawable/tv_pip_full_button" /> |
| 39 | |
| 40 | <TextView android:id="@+id/full_desc" |
| 41 | android:layout_width="100dp" |
| 42 | android:layout_height="wrap_content" |
| 43 | android:layout_marginTop="3dp" |
| 44 | android:gravity="center" |
| 45 | android:visibility="invisible" |
| 46 | android:text="@string/pip_fullscreen" |
| 47 | android:fontFamily="sans-serif" |
| 48 | android:textSize="12sp" |
| 49 | android:textColor="#EEEEEE" /> |
| 50 | </LinearLayout> |
| 51 | |
| 52 | <LinearLayout |
| 53 | android:layout_width="100dp" |
| 54 | android:layout_height="wrap_content" |
| 55 | android:layout_marginStart="-50dp" |
| 56 | android:orientation="vertical" |
| 57 | android:gravity="center"> |
| 58 | |
| 59 | <ImageView android:id="@+id/close_button" |
| 60 | android:layout_width="wrap_content" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:focusable="true" |
| 63 | android:src="@drawable/tv_pip_close_button" /> |
| 64 | |
| 65 | <TextView android:id="@+id/close_desc" |
| 66 | android:layout_width="100dp" |
| 67 | android:layout_height="wrap_content" |
| 68 | android:layout_marginTop="3dp" |
| 69 | android:gravity="center" |
| 70 | android:visibility="invisible" |
| 71 | android:text="@string/pip_close" |
| 72 | android:fontFamily="sans-serif" |
| 73 | android:textSize="12sp" |
| 74 | android:textColor="#EEEEEE" /> |
| 75 | </LinearLayout> |
| 76 | |
| 77 | <LinearLayout android:id="@+id/play_pause" |
| 78 | android:layout_width="100dp" |
| 79 | android:layout_height="wrap_content" |
| 80 | android:layout_marginStart="-50dp" |
| 81 | android:orientation="vertical" |
| 82 | android:gravity="center" > |
| 83 | |
| 84 | <ImageView android:id="@+id/play_pause_button" |
| 85 | android:layout_width="wrap_content" |
| 86 | android:layout_height="wrap_content" |
| 87 | android:focusable="true" |
| 88 | android:src="@drawable/tv_pip_pause_button" /> |
| 89 | |
| 90 | <TextView android:id="@+id/play_pause_desc" |
| 91 | android:layout_width="100dp" |
| 92 | android:layout_height="wrap_content" |
| 93 | android:layout_marginTop="3dp" |
| 94 | android:gravity="center" |
| 95 | android:visibility="invisible" |
| 96 | android:text="@string/pip_pause" |
| 97 | android:fontFamily="sans-serif" |
| 98 | android:textSize="12sp" |
| 99 | android:textColor="#EEEEEE" /> |
| 100 | </LinearLayout> |
| 101 | </com.android.systemui.tv.pip.PipControlsView> |