diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-09-19 17:16:38 -0700 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-09-20 14:00:57 -0700 |
commit | df41c36076dce8d68bcb69bc922b057c1bd82ee0 (patch) | |
tree | a927149819fc4adf44c36f55f6fa92919d6b296b /res | |
parent | ed5ca72866c13c7916fe8a05d5324d9646fc4231 (diff) | |
download | LegacyCamera-df41c36076dce8d68bcb69bc922b057c1bd82ee0.zip LegacyCamera-df41c36076dce8d68bcb69bc922b057c1bd82ee0.tar.gz LegacyCamera-df41c36076dce8d68bcb69bc922b057c1bd82ee0.tar.bz2 |
Use theme to display background to reduce perceived latency.
Now system picks up the camera background as soon as the app
starts. Originally users would see the app startup with the
default theme and its dark background. The camera background
would only appear after the inflation of the content view
and the first layout/drawing pass.
Change-Id: I9003b37b1a958c78f5fd804de9fedeb23bd90fc9
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/camera.xml | 1 | ||||
-rw-r--r-- | res/layout/video_camera.xml | 1 | ||||
-rw-r--r-- | res/values/styles.xml | 3 |
3 files changed, 3 insertions, 2 deletions
diff --git a/res/layout/camera.xml b/res/layout/camera.xml index 772106b..182084a 100644 --- a/res/layout/camera.xml +++ b/res/layout/camera.xml @@ -16,7 +16,6 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:camera="http://schemas.android.com/apk/res/com.android.camera" - android:background="@drawable/camera_background" android:id="@+id/camera" android:orientation="horizontal" android:layout_width="match_parent" diff --git a/res/layout/video_camera.xml b/res/layout/video_camera.xml index 82d1dc9..1dae598 100644 --- a/res/layout/video_camera.xml +++ b/res/layout/video_camera.xml @@ -17,7 +17,6 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:camera="http://schemas.android.com/apk/res/com.android.camera" android:id="@+id/video_camera" - android:background="@drawable/camera_background" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent"> diff --git a/res/values/styles.xml b/res/values/styles.xml index 613ac34..6de4a96 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -18,6 +18,9 @@ --> <resources xmlns:android="http://schemas.android.com/apk/res/android"> + <style name="ThemeCamera" parent="android:Theme.Black.NoTitleBar.Fullscreen"> + <item name="android:windowBackground">@drawable/camera_background</item> + </style> <style name="OnScreenHintTextAppearance"> <item name="android:textColor">@android:color/primary_text_dark</item> <item name="android:textColorHighlight">#FFFF9200</item> |