diff options
| author | 2016-04-13 14:52:58 +0900 | |
|---|---|---|
| committer | 2016-04-13 14:56:56 +0900 | |
| commit | 1cc1e339b1aa034b327b83507452112a0b0fa8c1 (patch) | |
| tree | 08f6b286803725ec5c6a10b29c74467f8a00faae | |
| parent | aceda5b93a01a93c88fc37334ca03b2bb74c71e9 (diff) | |
PIP: Add PIP boundary
Bug: 28040141
Change-Id: Iebd1e2cce4b3103e322bb92113c61e644a35be72
3 files changed, 27 insertions, 6 deletions
diff --git a/packages/SystemUI/res/drawable/tv_pip_overlay_background.xml b/packages/SystemUI/res/drawable/tv_pip_overlay_background.xml index e247dec3ae27..2b58fc5a5fd3 100644 --- a/packages/SystemUI/res/drawable/tv_pip_overlay_background.xml +++ b/packages/SystemUI/res/drawable/tv_pip_overlay_background.xml @@ -16,8 +16,5 @@ <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> - <gradient - android:startColor="#B2000000" - android:endColor="#00000000" - android:angle="90"/> + <stroke android:width="1dp" android:color="#33FFFFFF" /> </shape> diff --git a/packages/SystemUI/res/drawable/tv_pip_overlay_text_background.xml b/packages/SystemUI/res/drawable/tv_pip_overlay_text_background.xml new file mode 100644 index 000000000000..e247dec3ae27 --- /dev/null +++ b/packages/SystemUI/res/drawable/tv_pip_overlay_text_background.xml @@ -0,0 +1,23 @@ +<!-- + Copyright (C) 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. +--> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + + <gradient + android:startColor="#B2000000" + android:endColor="#00000000" + android:angle="90"/> +</shape> diff --git a/packages/SystemUI/res/layout/tv_pip_overlay.xml b/packages/SystemUI/res/layout/tv_pip_overlay.xml index 64bf3b5bbdbf..608680cdf25f 100644 --- a/packages/SystemUI/res/layout/tv_pip_overlay.xml +++ b/packages/SystemUI/res/layout/tv_pip_overlay.xml @@ -19,7 +19,8 @@ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="match_parent"> + android:layout_height="match_parent" + android:background="@drawable/tv_pip_overlay_background"> <TextView android:id="@+id/guide_overlay" @@ -33,7 +34,7 @@ android:textSize="14sp" android:textColor="#EEEEEE" android:fontFamily="sans-serif" - android:background="@drawable/tv_pip_overlay_background" + android:background="@drawable/tv_pip_overlay_text_background" android:lineSpacingMultiplier="1.465" android:gravity="center" android:maxLines="2" |