diff options
author | Byunghun Jeon <bjeon@codeaurora.org> | 2015-05-18 11:35:38 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-07-30 12:29:07 -0700 |
commit | f61915f04cf9c47e1c23688a9eeffbf552617b82 (patch) | |
tree | c78e9f505aadd87d37ed91d74a75c3199bffc575 /res | |
parent | a2a57a538c401b564070f10dfac34cae12312928 (diff) | |
download | android_packages_apps_Snap-f61915f04cf9c47e1c23688a9eeffbf552617b82.tar.gz android_packages_apps_Snap-f61915f04cf9c47e1c23688a9eeffbf552617b82.tar.bz2 android_packages_apps_Snap-f61915f04cf9c47e1c23688a9eeffbf552617b82.zip |
SnapdragonCamera: Improved panorama
Improved panorama with faster performance and low memory
consumption. Also displays progress while taking panorama shot.
Change-Id: I88ae1205f056ebe59129e65d69fcc44f46a5ab92
CRs-Fixed: 859274
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/pano_module_capture.xml | 55 |
1 files changed, 15 insertions, 40 deletions
diff --git a/res/layout/pano_module_capture.xml b/res/layout/pano_module_capture.xml index ad34cf808..56ef4f2c2 100644 --- a/res/layout/pano_module_capture.xml +++ b/res/layout/pano_module_capture.xml @@ -25,11 +25,10 @@ android:layout_height="match_parent" android:layout_gravity="center" > - <TextureView - android:id="@+id/pano_preview_textureview" + <SurfaceView + android:id="@+id/pano_preview_surfaceview" android:layout_width="match_parent" android:layout_height="match_parent" /> - <View android:id="@+id/pano_preview_area_border" android:layout_width="match_parent" @@ -75,44 +74,8 @@ android:layout_height="0dp" android:layout_weight="1" android:gravity="top" - android:paddingTop="20dp" > + android:paddingTop="50dp" > - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_centerInParent="true" - android:orientation="horizontal" > - - <ImageView - android:id="@+id/pano_pan_left_indicator" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_marginRight="5dp" - android:layout_weight="1" - android:gravity="center_vertical" - android:src="@drawable/pano_direction_left_indicator" - android:visibility="gone" /> - - <com.android.camera.PanoProgressBar - android:id="@+id/pano_pan_progress_bar" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_weight="9" - android:gravity="center_vertical" - android:src="@drawable/ic_pan_progression" - android:visibility="gone" /> - - <ImageView - android:id="@+id/pano_pan_right_indicator" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_marginLeft="5dp" - android:layout_toRightOf="@id/pano_pan_progress_bar" - android:layout_weight="1" - android:gravity="center_vertical" - android:src="@drawable/pano_direction_right_indicator" - android:visibility="gone" /> - </LinearLayout> </FrameLayout> </LinearLayout> @@ -126,4 +89,16 @@ android:textAppearance="?android:textAppearanceMedium" android:visibility="gone" /> + <FrameLayout + android:id="@+id/pano_capture_preview_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <ImageView + android:id="@+id/pano_capture_preview" + android:layout_width="match_parent" + android:layout_height="100dp" + android:layout_gravity="center" /> + </FrameLayout> + </FrameLayout> |