Loading packages/SystemUI/AndroidManifest.xml +6 −0 Original line number Diff line number Diff line Loading @@ -349,6 +349,12 @@ android:resizeable="true" android:supportsPictureInPicture="true" android:excludeFromRecents="true" /> <activity android:name="com.android.systemui.tv.pip.PipOnboardingActivity" android:exported="true" android:theme="@style/PipTheme" android:launchMode="singleTop" android:excludeFromRecents="true" /> <!-- platform logo easter egg activity --> <activity Loading packages/SystemUI/res/layout/tv_pip_menu.xml +31 −39 Original line number Diff line number Diff line Loading @@ -17,21 +17,15 @@ */ --> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:layout_alignParentEnd="true" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="end" android:paddingStart="10dp" android:paddingEnd="10dp" android:background="#88FFFFFF"> <LinearLayout android:orientation="vertical" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" > android:background="#88FFFFFF" android:gravity="center_vertical" > <Button android:id="@+id/full" android:layout_width="match_parent" Loading @@ -57,5 +51,3 @@ android:textSize="10sp" android:focusable="true" /> </LinearLayout> </FrameLayout> </RelativeLayout> packages/SystemUI/res/layout/tv_pip_onboarding.xml 0 → 100644 +51 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ** ** Copyright 2016, 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. */ --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#C00288D1" android:gravity="center" android:orientation="vertical" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="30sp" android:textColor="@android:color/white" android:text="@string/pip_onboarding_title" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_sysbar_home" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="30dp" android:textSize="13sp" android:textColor="@android:color/white" android:text="@string/pip_onboarding_description" /> <Button android:id="@+id/close" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="15sp" android:textAllCaps="true" android:text="@string/pip_onboarding_button" /> </LinearLayout> packages/SystemUI/res/layout/tv_pip_overlay.xml +9 −13 Original line number Diff line number Diff line Loading @@ -17,10 +17,7 @@ */ --> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/guide_overlay" android:layout_width="match_parent" android:layout_height="wrap_content" Loading @@ -30,4 +27,3 @@ android:textColor="#111111" android:background="#99EEEEEE" android:text="@string/pip_hold_home" /> </FrameLayout> packages/SystemUI/res/values/strings_tv.xml +11 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ */ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <!-- Picture-in-Picture menu --> <eat-comment /> <!-- Button to close PIP on PIP UI --> <string name="pip_exit" translatable="false">Close PIP</string> <!-- Button to move PIP screen to the fullscreen on PIP UI --> Loading @@ -29,4 +31,13 @@ <string name="pip_cancel" translatable="false">Cancel</string> <!-- Overlay text on PIP --> <string name="pip_hold_home" translatable="false">Hold HOME to control PIP</string> <!-- Picture-in-Picture onboarding screen --> <eat-comment /> <!-- Title for onboarding screen. --> <string name="pip_onboarding_title" translatable="false">Picture-in-picture</string> <!-- Description for onboarding screen. --> <string name="pip_onboarding_description" translatable="false">Press and hold the HOME\nbutton to close or control it</string> <!-- Button to close onboarding screen. --> <string name="pip_onboarding_button" translatable="false">Got it</string> </resources> Loading
packages/SystemUI/AndroidManifest.xml +6 −0 Original line number Diff line number Diff line Loading @@ -349,6 +349,12 @@ android:resizeable="true" android:supportsPictureInPicture="true" android:excludeFromRecents="true" /> <activity android:name="com.android.systemui.tv.pip.PipOnboardingActivity" android:exported="true" android:theme="@style/PipTheme" android:launchMode="singleTop" android:excludeFromRecents="true" /> <!-- platform logo easter egg activity --> <activity Loading
packages/SystemUI/res/layout/tv_pip_menu.xml +31 −39 Original line number Diff line number Diff line Loading @@ -17,21 +17,15 @@ */ --> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:layout_alignParentEnd="true" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="end" android:paddingStart="10dp" android:paddingEnd="10dp" android:background="#88FFFFFF"> <LinearLayout android:orientation="vertical" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" > android:background="#88FFFFFF" android:gravity="center_vertical" > <Button android:id="@+id/full" android:layout_width="match_parent" Loading @@ -57,5 +51,3 @@ android:textSize="10sp" android:focusable="true" /> </LinearLayout> </FrameLayout> </RelativeLayout>
packages/SystemUI/res/layout/tv_pip_onboarding.xml 0 → 100644 +51 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ** ** Copyright 2016, 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. */ --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#C00288D1" android:gravity="center" android:orientation="vertical" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="30sp" android:textColor="@android:color/white" android:text="@string/pip_onboarding_title" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_sysbar_home" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="30dp" android:textSize="13sp" android:textColor="@android:color/white" android:text="@string/pip_onboarding_description" /> <Button android:id="@+id/close" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="15sp" android:textAllCaps="true" android:text="@string/pip_onboarding_button" /> </LinearLayout>
packages/SystemUI/res/layout/tv_pip_overlay.xml +9 −13 Original line number Diff line number Diff line Loading @@ -17,10 +17,7 @@ */ --> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/guide_overlay" android:layout_width="match_parent" android:layout_height="wrap_content" Loading @@ -30,4 +27,3 @@ android:textColor="#111111" android:background="#99EEEEEE" android:text="@string/pip_hold_home" /> </FrameLayout>
packages/SystemUI/res/values/strings_tv.xml +11 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ */ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <!-- Picture-in-Picture menu --> <eat-comment /> <!-- Button to close PIP on PIP UI --> <string name="pip_exit" translatable="false">Close PIP</string> <!-- Button to move PIP screen to the fullscreen on PIP UI --> Loading @@ -29,4 +31,13 @@ <string name="pip_cancel" translatable="false">Cancel</string> <!-- Overlay text on PIP --> <string name="pip_hold_home" translatable="false">Hold HOME to control PIP</string> <!-- Picture-in-Picture onboarding screen --> <eat-comment /> <!-- Title for onboarding screen. --> <string name="pip_onboarding_title" translatable="false">Picture-in-picture</string> <!-- Description for onboarding screen. --> <string name="pip_onboarding_description" translatable="false">Press and hold the HOME\nbutton to close or control it</string> <!-- Button to close onboarding screen. --> <string name="pip_onboarding_button" translatable="false">Got it</string> </resources>