diff options
author | Doris Liu <tianliu@google.com> | 2013-02-26 10:54:25 -0800 |
---|---|---|
committer | Doris Liu <tianliu@google.com> | 2013-03-04 10:09:40 -0800 |
commit | 08a98b9946503e97549d70fd0228dea81175159e (patch) | |
tree | a0bad6a49126227ecb0047564cd1fe5d2ccec54a /res/layout-land/review_module_control.xml | |
parent | ac4e910c72e99d3b11e50b0174c89113ca981b6b (diff) | |
download | android_packages_apps_Snap-08a98b9946503e97549d70fd0228dea81175159e.tar.gz android_packages_apps_Snap-08a98b9946503e97549d70fd0228dea81175159e.tar.bz2 android_packages_apps_Snap-08a98b9946503e97549d70fd0228dea81175159e.zip |
Flatten view hierarchy and rotate views
TODO: SRI pano and Lightcycle can use a bit more flattening.
I will get to them next. (Maybe in a different CL.)
TODO: Need to cancel capture animation in onConfigurationChanged()
Change-Id: I00fd3e098117d9fb74fde2c128407ab6275bcedf
Diffstat (limited to 'res/layout-land/review_module_control.xml')
-rw-r--r-- | res/layout-land/review_module_control.xml | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/res/layout-land/review_module_control.xml b/res/layout-land/review_module_control.xml index e732a2c80..9f8b0cd46 100644 --- a/res/layout-land/review_module_control.xml +++ b/res/layout-land/review_module_control.xml @@ -13,13 +13,16 @@ See the License for the specific language governing permissions and limitations under the License. --> -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_height="match_parent" - android:layout_width="match_parent"> - <com.android.camera.ui.RotateImageView android:id="@+id/btn_done" +<com.android.camera.ui.RotatableLayout + xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/CameraControls" + android:layout_gravity="right|center_vertical" + android:layout_marginRight="2dip"> + <ImageView android:id="@+id/btn_done" style="@style/ReviewControlIcon" android:contentDescription="@string/accessibility_review_ok" android:visibility="gone" + android:scaleType="center" android:layout_gravity="top|right" android:background="@drawable/bg_pressed" android:src="@drawable/ic_menu_done_holo_light" /> @@ -34,11 +37,12 @@ android:background="@drawable/bg_pressed" android:src="@drawable/ic_btn_shutter_retake" /> - <com.android.camera.ui.RotateImageView android:id="@+id/btn_cancel" + <ImageView android:id="@+id/btn_cancel" style="@style/ReviewControlIcon" android:contentDescription="@string/accessibility_review_cancel" android:visibility="gone" + android:scaleType="center" android:layout_gravity="bottom|right" android:background="@drawable/bg_pressed" android:src="@drawable/ic_menu_cancel_holo_light" /> -</FrameLayout> +</com.android.camera.ui.RotatableLayout> |