diff options
author | Angus Kong <shkong@google.com> | 2011-09-07 02:07:47 +0800 |
---|---|---|
committer | Angus Kong <shkong@google.com> | 2011-09-07 02:07:47 +0800 |
commit | 706dbcde3479742be431bee58a1cd34f3b14c105 (patch) | |
tree | 5c221489ebd6ab8b72705f516e53846f67c2d5a6 /res/layout | |
parent | 260fa672e7c4b56f3feda906825aa835d7d1e1a3 (diff) | |
download | LegacyCamera-706dbcde3479742be431bee58a1cd34f3b14c105.zip LegacyCamera-706dbcde3479742be431bee58a1cd34f3b14c105.tar.gz LegacyCamera-706dbcde3479742be431bee58a1cd34f3b14c105.tar.bz2 |
Prevent the top/bottom bars block capture view.
bug:5142001
Change-Id: I262e801a93c18e1e9affa00258d2a7030c94024b
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/pano_capture.xml | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/res/layout/pano_capture.xml b/res/layout/pano_capture.xml index 67d302d..7736ddf 100644 --- a/res/layout/pano_capture.xml +++ b/res/layout/pano_capture.xml @@ -20,35 +20,33 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - <FrameLayout android:gravity="center" + <LinearLayout android:id="@+id/pano_capture_preview" android:layout_width="match_parent" - android:layout_height="match_parent"> + android:layout_height="match_parent" + android:orientation="vertical"> + + <ImageView style="@style/PanoViewHorizontalGrayBar"/> + <com.android.camera.panorama.MosaicRendererSurfaceView android:id="@+id/pano_renderer" android:layout_gravity="center" android:layout_width="@dimen/pano_mosaic_surface_width" android:layout_height="@dimen/pano_mosaic_surface_height" /> - </FrameLayout> - <ImageView style="@style/PanoViewHorizontalGrayBar" - android:layout_alignParentTop="true" - android:layout_width="match_parent" /> - - <LinearLayout android:id="@+id/pano_capture_control" - style="@style/PanoViewHorizontalGrayBar" - android:gravity="right" - android:visibility="visible" - android:orientation="horizontal" - android:layout_alignParentBottom="true" - android:layout_width="match_parent"> + <LinearLayout android:id="@+id/pano_capture_control" + style="@style/PanoViewHorizontalGrayBar" + android:gravity="right" + android:visibility="visible" + android:orientation="horizontal"> - <Button android:id="@+id/pano_capture_stop_button" - android:text="@string/pano_capture_stop" - android:onClick="onStopButtonClicked" - android:visibility="gone" - android:textAppearance="?android:textAppearanceMedium" - android:layout_width="@dimen/pano_capture_stop_button_width" - android:layout_height="@dimen/pano_capture_stop_button_width" /> + <Button android:id="@+id/pano_capture_stop_button" + android:text="@string/pano_capture_stop" + android:onClick="onStopButtonClicked" + android:visibility="gone" + android:textAppearance="?android:textAppearanceMedium" + android:layout_width="@dimen/pano_capture_stop_button_width" + android:layout_height="@dimen/pano_capture_stop_button_width" /> + </LinearLayout> </LinearLayout> <com.android.camera.panorama.IndicationView |