summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorChung-yih Wang <cywang@google.com>2011-08-05 14:41:40 +0800
committerChung-yih Wang <cywang@google.com>2011-08-05 18:56:23 +0800
commite46d09dc17ac1cad5062fdc4b29916dc63da06c3 (patch)
treee4646cdb9c953d75a35ac801e6c70255f0127aa2 /res
parentc926b2152b7d1b65f34b58af50d0c6cdeb070123 (diff)
downloadLegacyCamera-e46d09dc17ac1cad5062fdc4b29916dc63da06c3.zip
LegacyCamera-e46d09dc17ac1cad5062fdc4b29916dc63da06c3.tar.gz
LegacyCamera-e46d09dc17ac1cad5062fdc4b29916dc63da06c3.tar.bz2
Use View.GONE instead of View.INVISIBLE.
Refactor this to improve the performance. Change-Id: I6a20021bf07546b0cfa6b4c4b5fe0d67556940a5
Diffstat (limited to 'res')
-rw-r--r--res/layout-w1024dp/basic_setting_popup.xml2
-rw-r--r--res/layout-w1024dp/mode_picker.xml2
-rw-r--r--res/layout-w1024dp/other_setting_popup.xml2
-rw-r--r--res/layout-w1024dp/preview_frame.xml6
-rw-r--r--res/layout-w1024dp/preview_frame_video.xml2
-rw-r--r--res/layout/basic_setting_popup.xml2
-rw-r--r--res/layout/mode_picker.xml2
-rw-r--r--res/layout/other_setting_popup.xml2
-rw-r--r--res/layout/preview_frame.xml4
9 files changed, 12 insertions, 12 deletions
diff --git a/res/layout-w1024dp/basic_setting_popup.xml b/res/layout-w1024dp/basic_setting_popup.xml
index 61cd273..5dfaabd 100644
--- a/res/layout-w1024dp/basic_setting_popup.xml
+++ b/res/layout-w1024dp/basic_setting_popup.xml
@@ -22,7 +22,7 @@
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
- android:visibility="invisible"
+ android:visibility="gone"
android:background="@android:color/transparent">
<!-- the transparent background here is a workaround of the render issue
happened when the popup window is rotated as the device's orientation
diff --git a/res/layout-w1024dp/mode_picker.xml b/res/layout-w1024dp/mode_picker.xml
index 1ee6226..0168769 100644
--- a/res/layout-w1024dp/mode_picker.xml
+++ b/res/layout-w1024dp/mode_picker.xml
@@ -37,7 +37,7 @@
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:gravity="center"
- android:visibility="invisible">
+ android:visibility="gone">
<com.android.camera.ui.RotateImageView android:id="@+id/mode_panorama"
android:layout_height="62dp"
android:layout_width="62dp"
diff --git a/res/layout-w1024dp/other_setting_popup.xml b/res/layout-w1024dp/other_setting_popup.xml
index a990ae4..66e0240 100644
--- a/res/layout-w1024dp/other_setting_popup.xml
+++ b/res/layout-w1024dp/other_setting_popup.xml
@@ -23,7 +23,7 @@
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
- android:visibility="invisible"
+ android:visibility="gone"
android:background="@android:color/transparent">
<!-- the transparent background here is a workaround of the render issue
happened when the popup window is rotated as the device's orientation
diff --git a/res/layout-w1024dp/preview_frame.xml b/res/layout-w1024dp/preview_frame.xml
index ac94a90..9cfc206 100644
--- a/res/layout-w1024dp/preview_frame.xml
+++ b/res/layout-w1024dp/preview_frame.xml
@@ -33,21 +33,21 @@
style="@style/OnViewfinderLabel"
android:layout_alignParentRight="true"
android:layout_below="@+id/review_control"
- android:visibility="invisible"/>
+ android:visibility="gone"/>
<ImageView style="@style/OnScreenGpsIndicator"
android:id="@+id/onscreen_gps_indicator_no_signal"
android:src="@drawable/ic_viewfinder_gps_no_signal"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_margin="15dp"
- android:visibility="invisible"/>
+ android:visibility="gone"/>
<ImageView style="@style/OnScreenGpsIndicator"
android:id="@+id/onscreen_gps_indicator_on"
android:src="@drawable/ic_viewfinder_gps_on"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_margin="15dp"
- android:visibility="invisible"/>
+ android:visibility="gone"/>
<include layout="@layout/review_control"/>
</RelativeLayout>
<!-- This is the border of preview and the corner is round. If it is the background,
diff --git a/res/layout-w1024dp/preview_frame_video.xml b/res/layout-w1024dp/preview_frame_video.xml
index b2b8e00..11fe590 100644
--- a/res/layout-w1024dp/preview_frame_video.xml
+++ b/res/layout-w1024dp/preview_frame_video.xml
@@ -46,7 +46,7 @@
android:layout_alignParentRight="true"
android:layout_below="@id/labels"
android:layout_alignWithParentIfMissing="true"
- android:visibility="invisible"/>
+ android:visibility="gone"/>
<include layout="@layout/review_control"/>
<LinearLayout
android:layout_width="wrap_content"
diff --git a/res/layout/basic_setting_popup.xml b/res/layout/basic_setting_popup.xml
index cb2a744..33bff04 100644
--- a/res/layout/basic_setting_popup.xml
+++ b/res/layout/basic_setting_popup.xml
@@ -22,7 +22,7 @@
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/indicator_control"
- android:visibility="invisible"
+ android:visibility="gone"
android:background="@android:color/transparent">
<!-- the transparent background here is a workaround of the render issue
happened when the popup window is rotated as the device's orientation
diff --git a/res/layout/mode_picker.xml b/res/layout/mode_picker.xml
index abbdf76..15c2101 100644
--- a/res/layout/mode_picker.xml
+++ b/res/layout/mode_picker.xml
@@ -34,7 +34,7 @@
android:background="@android:color/black"
android:layout_alignParentBottom="true"
android:gravity="center"
- android:visibility="invisible">
+ android:visibility="gone">
<com.android.camera.ui.RotateImageView android:id="@+id/mode_panorama"
android:layout_height="62dp"
android:layout_width="62dp"
diff --git a/res/layout/other_setting_popup.xml b/res/layout/other_setting_popup.xml
index ab729de..3c7cfcb 100644
--- a/res/layout/other_setting_popup.xml
+++ b/res/layout/other_setting_popup.xml
@@ -23,7 +23,7 @@
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/indicator_control"
- android:visibility="invisible"
+ android:visibility="gone"
android:background="@android:color/transparent">
<!-- the transparent background here is a workaround of the render issue
happened when the popup window is rotated as the device's orientation
diff --git a/res/layout/preview_frame.xml b/res/layout/preview_frame.xml
index faecf6d..e35e65c 100644
--- a/res/layout/preview_frame.xml
+++ b/res/layout/preview_frame.xml
@@ -42,14 +42,14 @@
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"
android:layout_margin="5dp"
- android:visibility="invisible"/>
+ android:visibility="gone"/>
<ImageView style="@style/OnScreenGpsIndicator"
android:id="@+id/onscreen_gps_indicator_on"
android:src="@drawable/ic_viewfinder_gps_on"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"
android:layout_margin="5dp"
- android:visibility="invisible"/>
+ android:visibility="gone"/>
<com.android.camera.ui.IndicatorBar
android:id="@+id/indicator_control"
android:layout_width="48dp"