From a1e2fec3a2bd2d206d82061857cd46fccd3768a1 Mon Sep 17 00:00:00 2001 From: Galia Peycheva Date: Wed, 30 Sep 2020 14:21:19 +0200 Subject: [PATCH] Make silkfx compatible with tv Bug: 170378991 Test: m SilkFX && adb install ... && adb shell am start -n com.android.test.silkfx/.materials.GlassActivity Change-Id: I85c9ad8966a2a0397ded54829d54c8ef253b0c57 --- tests/SilkFX/AndroidManifest.xml | 13 +- .../res/layout-television/activity_glass.xml | 302 ++++++++++++++++++ 2 files changed, 312 insertions(+), 3 deletions(-) create mode 100644 tests/SilkFX/res/layout-television/activity_glass.xml diff --git a/tests/SilkFX/AndroidManifest.xml b/tests/SilkFX/AndroidManifest.xml index 050e9c33aeac9..c30d76137f76b 100644 --- a/tests/SilkFX/AndroidManifest.xml +++ b/tests/SilkFX/AndroidManifest.xml @@ -4,9 +4,9 @@ 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. @@ -40,7 +40,14 @@ android:label="Glow Examples"/> + android:label="Glass Examples" + android:banner="@drawable/background1" + android:exported="true"> + + + + + diff --git a/tests/SilkFX/res/layout-television/activity_glass.xml b/tests/SilkFX/res/layout-television/activity_glass.xml new file mode 100644 index 0000000000000..1f566860da3db --- /dev/null +++ b/tests/SilkFX/res/layout-television/activity_glass.xml @@ -0,0 +1,302 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +