summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorCheng-Ru Lin <owenlin@google.com>2009-11-11 23:24:32 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2009-11-11 23:24:32 -0800
commitfb4f6c794b282f1a255f5405cf54222acb51d512 (patch)
tree5e126bdd8a3f4b60031f7c38e02881da14ba3dbd /res
parent91e7670d43fb5e56e2cb8c5fd7bddb1f3dbeb162 (diff)
parentcc12a303ad51063cee73715849a951fb5f383188 (diff)
downloadpackages_apps_LegacyCamera-fb4f6c794b282f1a255f5405cf54222acb51d512.zip
packages_apps_LegacyCamera-fb4f6c794b282f1a255f5405cf54222acb51d512.tar.gz
packages_apps_LegacyCamera-fb4f6c794b282f1a255f5405cf54222acb51d512.tar.bz2
am cc12a303: Add icon-indicators to VideoCamera.
Merge commit 'cc12a303ad51063cee73715849a951fb5f383188' into eclair-mr2 * commit 'cc12a303ad51063cee73715849a951fb5f383188': Add icon-indicators to VideoCamera.
Diffstat (limited to 'res')
-rw-r--r--res/layout/video_camera.xml20
-rw-r--r--res/xml/video_preferences.xml6
2 files changed, 22 insertions, 4 deletions
diff --git a/res/layout/video_camera.xml b/res/layout/video_camera.xml
index b165d90..9ebdc03 100644
--- a/res/layout/video_camera.xml
+++ b/res/layout/video_camera.xml
@@ -15,6 +15,7 @@
-->
<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"
@@ -35,8 +36,7 @@
<SurfaceView android:id="@+id/camera_preview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
- <ImageView
- android:id="@+id/video_frame"
+ <ImageView android:id="@+id/video_frame"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="gone" />
@@ -61,6 +61,22 @@
android:textSize="23dp"
android:textStyle="bold"
android:visibility="gone"/>
+ <LinearLayout android:id="@+id/indicator_bar"
+ android:orientation="vertical"
+ android:visibility="visible"
+ android:gravity="center"
+ android:layout_gravity="left|bottom"
+ android:layout_marginBottom="60dp"
+ android:layout_marginLeft="13dp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content">
+ <com.android.camera.IconIndicator
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/whitebalance_icon"
+ camera:modes="@array/pref_camera_whitebalance_entryvalues"
+ camera:icons="@array/whitebalance_icons"/>
+ </LinearLayout>
</FrameLayout>
</com.android.camera.PreviewFrameLayout>
</LinearLayout>
diff --git a/res/xml/video_preferences.xml b/res/xml/video_preferences.xml
index 3617f79..105d1fc 100644
--- a/res/xml/video_preferences.xml
+++ b/res/xml/video_preferences.xml
@@ -14,7 +14,8 @@
limitations under the License.
-->
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:camera="http://schemas.android.com/apk/res/com.android.camera">
<PreferenceCategory
android:title="@string/pref_camcorder_settings_category">
<ListPreference
@@ -31,10 +32,11 @@
android:entries="@array/pref_camera_video_duration_entries"
android:entryValues="@array/pref_camera_video_duration_entryvalues"
android:dialogTitle="@string/pref_camera_video_duration_dialogtitle" />
- <ListPreference
+ <com.android.camera.IconListPreference
android:key="pref_camera_whitebalance_key"
android:defaultValue="@string/pref_camera_whitebalance_default"
android:title="@string/pref_camera_whitebalance_title"
+ camera:icons="@array/pref_camera_whitebalance_icons"
android:entries="@array/pref_camera_whitebalance_entries"
android:entryValues="@array/pref_camera_whitebalance_entryvalues"
android:dialogTitle="@string/pref_camera_whitebalance_dialogtitle" />