summaryrefslogtreecommitdiffstats
path: root/res/layout-sw485dp/video_camera_attach.xml
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-05-21 15:44:54 +0800
committerWu-cheng Li <wuchengli@google.com>2011-05-23 12:27:21 +0800
commite2369594edd68180b5820afdd33a274a7e7a7f4a (patch)
tree5b2f89608509a9aa73f17d40718c3de7a05f75db /res/layout-sw485dp/video_camera_attach.xml
parente2eebff5a84e6981d81d0a9ac28322867099b295 (diff)
downloadpackages_apps_LegacyCamera-e2369594edd68180b5820afdd33a274a7e7a7f4a.zip
packages_apps_LegacyCamera-e2369594edd68180b5820afdd33a274a7e7a7f4a.tar.gz
packages_apps_LegacyCamera-e2369594edd68180b5820afdd33a274a7e7a7f4a.tar.bz2
Move layout and resource to sw485dp.
Camera app has phone UI and tablet UI. Phone UI can be used by one hand in portrait mode. So all the controls are on the same side. The maximum size that can be comfortablely used by one hand is around 480dp. If both sides of the screen are bigger than 480dp, the app will use tablet UI. Use sw485dp to make sure 640x480dp use phone UI. Also remove some hard-coded values in xlarge layout. bug:4473360 Change-Id: I8a1dafaee84594b84a81f21f05c2568e5f7d324d
Diffstat (limited to 'res/layout-sw485dp/video_camera_attach.xml')
-rw-r--r--res/layout-sw485dp/video_camera_attach.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/res/layout-sw485dp/video_camera_attach.xml b/res/layout-sw485dp/video_camera_attach.xml
new file mode 100644
index 0000000..958f72c
--- /dev/null
+++ b/res/layout-sw485dp/video_camera_attach.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:camera="http://schemas.android.com/apk/res/com.android.camera"
+ android:id="@+id/app_root"
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/bg_ring_control_holo">
+
+ <include layout="@layout/camera_control"/>
+ <include layout="@layout/preview_frame_video"/>
+</RelativeLayout>