From edada7ca2b7c70c5459cbe488c1a16cc186f2bf0 Mon Sep 17 00:00:00 2001 From: Chih-Chung Chang Date: Tue, 22 May 2012 21:26:36 -0700 Subject: [PATCH] Put a black View in front of SurfaceView. This prevents SurfaceView from being transparent before the first draw. Bug: 6507478 Change-Id: I2170f23d4c9844bfc3854d6120f5e72cc0d591ca --- res/layout/cropimage.xml | 6 +----- res/layout/dialog_picker.xml | 3 +-- res/layout/gl_root_group.xml | 26 ++++++++++++++++++++++++++ res/layout/main.xml | 9 +-------- src/com/android/gallery3d/ui/GLRootView.java | 17 +++++++++++++++++ 5 files changed, 46 insertions(+), 15 deletions(-) create mode 100644 res/layout/gl_root_group.xml diff --git a/res/layout/cropimage.xml b/res/layout/cropimage.xml index aefebe82d..c434fb6a6 100644 --- a/res/layout/cropimage.xml +++ b/res/layout/cropimage.xml @@ -17,9 +17,5 @@ - + diff --git a/res/layout/dialog_picker.xml b/res/layout/dialog_picker.xml index ba3f500f1..4a625a10b 100644 --- a/res/layout/dialog_picker.xml +++ b/res/layout/dialog_picker.xml @@ -18,8 +18,7 @@ android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> - diff --git a/res/layout/gl_root_group.xml b/res/layout/gl_root_group.xml new file mode 100644 index 000000000..76ff33b73 --- /dev/null +++ b/res/layout/gl_root_group.xml @@ -0,0 +1,26 @@ + + + + + + + diff --git a/res/layout/main.xml b/res/layout/main.xml index 7dfe57a2d..d36730146 100644 --- a/res/layout/main.xml +++ b/res/layout/main.xml @@ -4,14 +4,7 @@ android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> - +