summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2011-09-02 10:20:04 -0700
committerMartijn Coenen <maco@google.com>2011-09-02 18:18:32 -0700
commit217edd31f93c3917a8bb02420366b88d27c431c2 (patch)
treefc9da9cee9d987e33bdd9d2f383d995b57707840 /res/layout
parentf7966d1dadff2d78f01bbdb134e8252b53343179 (diff)
downloadpackages_apps_nfc-217edd31f93c3917a8bb02420366b88d27c431c2.zip
packages_apps_nfc-217edd31f93c3917a8bb02420366b88d27c431c2.tar.gz
packages_apps_nfc-217edd31f93c3917a8bb02420366b88d27c431c2.tar.bz2
Render fireflies with OpenGL.
- Show a static (scaling in) background in case we're not hw-accelerated. - Modify the cloning animation a bit. Change-Id: I808238fb515c2c8d7832a4ab8bc70a37e1198de5
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/screenshot.xml16
1 files changed, 14 insertions, 2 deletions
diff --git a/res/layout/screenshot.xml b/res/layout/screenshot.xml
index 180d045..9e62af7 100644
--- a/res/layout/screenshot.xml
+++ b/res/layout/screenshot.xml
@@ -18,6 +18,18 @@
android:layout_height="match_parent"
android:background="#FF000000"
>
+ <TextureView android:id="@+id/fireflies"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ />
+ <ImageView android:id="@+id/back"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:adjustViewBounds="true"
+ android:src="@drawable/back"
+ android:scaleType="centerCrop"
+ android:visibility="gone"
+ />
<RelativeLayout android:layout_width="match_parent"
android:layout_height="match_parent"
>
@@ -34,12 +46,12 @@
android:textColor="?android:attr/textColorPrimary"
/>
</RelativeLayout>
- <ImageView android:id="@+id/screenshot"
+ <ImageView android:id="@+id/clone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
/>
- <ImageView android:id="@+id/clone"
+ <ImageView android:id="@+id/screenshot"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"