From d33109730e0ab81230f84e2bd35599e8e24fc4ba Mon Sep 17 00:00:00 2001 From: Chung-yih Wang Date: Tue, 18 Oct 2011 12:47:44 +0800 Subject: Change the default orientation to portrait. bug:5446617 Since the orientation is mainly portrait on phones, the default orientation of an application will decide if the window animation will be played before it starts. In order to reduce the launch time of Camera apps, this change is to skip the window animations by changing the default orientation to portrait. Change-Id: I6682ab408d7e8d1f0580f3c1600b6c9c3d6a7f6e --- AndroidManifest.xml | 3 - res/anim/first_level_fade_in.xml | 18 +++ res/anim/first_level_fade_out.xml | 18 +++ res/anim/grow_fade_in_from_bottom.xml | 18 --- res/anim/grow_fade_in_from_top.xml | 18 --- res/anim/mode_selection_fade_in.xml | 2 +- res/anim/mode_selection_fade_out.xml | 2 +- res/anim/second_level_fade_in.xml | 18 +++ res/anim/second_level_fade_out.xml | 18 +++ res/anim/shrink_fade_out_from_bottom.xml | 18 --- res/anim/shrink_fade_out_from_top.xml | 18 --- res/drawable-hdpi/btn_close_settings.png | Bin 522 -> 387 bytes res/drawable-hdpi/ic_zoom_big.9.png | Bin 135 -> 121 bytes res/drawable-hdpi/ic_zoom_big_dark.9.png | Bin 170 -> 93 bytes res/drawable-hdpi/list_divider.9.png | Bin 0 -> 78 bytes res/drawable-mdpi/btn_close_settings.png | Bin 446 -> 322 bytes res/drawable-mdpi/ic_zoom_big.9.png | Bin 132 -> 117 bytes res/drawable-mdpi/ic_zoom_big_dark.9.png | Bin 168 -> 90 bytes res/drawable-mdpi/list_divider.9.png | Bin 0 -> 78 bytes res/drawable-xhdpi/btn_close_settings.png | Bin 656 -> 554 bytes res/drawable-xhdpi/ic_zoom_big.9.png | Bin 92 -> 95 bytes res/drawable-xhdpi/ic_zoom_big_dark.9.png | Bin 171 -> 96 bytes res/drawable-xhdpi/list_divider.9.png | Bin 0 -> 83 bytes res/layout-sw600dp/pano_capture.xml | 128 +++++++++++++++++++++ res/layout-sw600dp/pano_review.xml | 80 +++++++++++++ res/layout-sw600dp/share_popup.xml | 87 ++++++++++++++ res/layout-sw600dp/viewfinder_labels_video.xml | 31 +++++ res/layout-w1024dp/priority_indicators.xml | 34 ++++++ res/layout/bg_replacement_training_message.xml | 16 +-- res/layout/camera.xml | 2 +- res/layout/camera_control.xml | 8 +- res/layout/effect_setting_item.xml | 2 +- res/layout/focus_indicator.xml | 6 +- res/layout/indicator_bar.xml | 45 ++++---- res/layout/mode_picker.xml | 83 ++++++------- res/layout/on_screen_hint.xml | 6 +- res/layout/pano_capture.xml | 127 +++++++++++--------- res/layout/pano_review.xml | 90 +++++++++------ res/layout/pano_rotate_dialog.xml | 104 +++++++++++++++++ res/layout/panorama.xml | 5 +- res/layout/preview_frame_video.xml | 14 +-- res/layout/priority_indicators.xml | 10 +- res/layout/review_control.xml | 14 +-- res/layout/setting_item.xml | 2 +- res/layout/share_icon.xml | 12 +- res/layout/share_popup.xml | 60 +++++----- res/layout/video_camera.xml | 10 +- res/layout/viewfinder_labels_video.xml | 4 +- res/values-sw600dp/styles.xml | 21 +++- res/values/dimens.xml | 2 +- res/values/styles.xml | 27 +++-- src/com/android/camera/ActivityBase.java | 2 + src/com/android/camera/Camera.java | 7 +- .../android/camera/panorama/PanoramaActivity.java | 120 ++++++++++++++----- src/com/android/camera/ui/ControlPanelLayout.java | 9 +- src/com/android/camera/ui/IndicatorControlBar.java | 15 ++- .../camera/ui/IndicatorControlBarContainer.java | 8 +- src/com/android/camera/ui/OneRowGridView.java | 43 +++++++ .../ui/RightAlignedHorizontalScrollView.java | 44 +++++++ .../camera/ui/SecondLevelIndicatorControlBar.java | 60 +++++----- src/com/android/camera/ui/SharePopup.java | 17 ++- src/com/android/camera/ui/ZoomControlBar.java | 52 ++++----- 62 files changed, 1120 insertions(+), 438 deletions(-) create mode 100644 res/anim/first_level_fade_in.xml create mode 100644 res/anim/first_level_fade_out.xml delete mode 100644 res/anim/grow_fade_in_from_bottom.xml delete mode 100644 res/anim/grow_fade_in_from_top.xml create mode 100644 res/anim/second_level_fade_in.xml create mode 100644 res/anim/second_level_fade_out.xml delete mode 100644 res/anim/shrink_fade_out_from_bottom.xml delete mode 100644 res/anim/shrink_fade_out_from_top.xml create mode 100644 res/drawable-hdpi/list_divider.9.png create mode 100644 res/drawable-mdpi/list_divider.9.png create mode 100644 res/drawable-xhdpi/list_divider.9.png create mode 100644 res/layout-sw600dp/pano_capture.xml create mode 100644 res/layout-sw600dp/pano_review.xml create mode 100644 res/layout-sw600dp/share_popup.xml create mode 100644 res/layout-sw600dp/viewfinder_labels_video.xml create mode 100644 res/layout-w1024dp/priority_indicators.xml create mode 100644 res/layout/pano_rotate_dialog.xml create mode 100644 src/com/android/camera/ui/OneRowGridView.java create mode 100644 src/com/android/camera/ui/RightAlignedHorizontalScrollView.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 23114dba..ad6755f0 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -31,7 +31,6 @@ @@ -52,7 +51,6 @@ android:label="@string/video_camera_label" android:configChanges="orientation|screenSize|keyboardHidden" android:icon="@mipmap/ic_launcher_video_camera" - android:screenOrientation="landscape" android:clearTaskOnLaunch="true" android:windowSoftInputMode="stateAlwaysHidden|adjustPan"> @@ -67,7 +65,6 @@ diff --git a/res/anim/first_level_fade_in.xml b/res/anim/first_level_fade_in.xml new file mode 100644 index 00000000..9cd50b72 --- /dev/null +++ b/res/anim/first_level_fade_in.xml @@ -0,0 +1,18 @@ + + + + + diff --git a/res/anim/first_level_fade_out.xml b/res/anim/first_level_fade_out.xml new file mode 100644 index 00000000..102b695a --- /dev/null +++ b/res/anim/first_level_fade_out.xml @@ -0,0 +1,18 @@ + + + + + diff --git a/res/anim/grow_fade_in_from_bottom.xml b/res/anim/grow_fade_in_from_bottom.xml deleted file mode 100644 index e2ea9ff1..00000000 --- a/res/anim/grow_fade_in_from_bottom.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - diff --git a/res/anim/grow_fade_in_from_top.xml b/res/anim/grow_fade_in_from_top.xml deleted file mode 100644 index 22c33f7d..00000000 --- a/res/anim/grow_fade_in_from_top.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - diff --git a/res/anim/mode_selection_fade_in.xml b/res/anim/mode_selection_fade_in.xml index bb710bbe..be316894 100644 --- a/res/anim/mode_selection_fade_in.xml +++ b/res/anim/mode_selection_fade_in.xml @@ -14,5 +14,5 @@ limitations under the License. --> - + diff --git a/res/anim/mode_selection_fade_out.xml b/res/anim/mode_selection_fade_out.xml index c770420f..a4d225bb 100644 --- a/res/anim/mode_selection_fade_out.xml +++ b/res/anim/mode_selection_fade_out.xml @@ -14,5 +14,5 @@ limitations under the License. --> - + diff --git a/res/anim/second_level_fade_in.xml b/res/anim/second_level_fade_in.xml new file mode 100644 index 00000000..baf165f2 --- /dev/null +++ b/res/anim/second_level_fade_in.xml @@ -0,0 +1,18 @@ + + + + + diff --git a/res/anim/second_level_fade_out.xml b/res/anim/second_level_fade_out.xml new file mode 100644 index 00000000..272f1712 --- /dev/null +++ b/res/anim/second_level_fade_out.xml @@ -0,0 +1,18 @@ + + + + + diff --git a/res/anim/shrink_fade_out_from_bottom.xml b/res/anim/shrink_fade_out_from_bottom.xml deleted file mode 100644 index 04bfd6e0..00000000 --- a/res/anim/shrink_fade_out_from_bottom.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - diff --git a/res/anim/shrink_fade_out_from_top.xml b/res/anim/shrink_fade_out_from_top.xml deleted file mode 100644 index 4d31904c..00000000 --- a/res/anim/shrink_fade_out_from_top.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - diff --git a/res/drawable-hdpi/btn_close_settings.png b/res/drawable-hdpi/btn_close_settings.png index 96e65bc5..f7b863da 100644 Binary files a/res/drawable-hdpi/btn_close_settings.png and b/res/drawable-hdpi/btn_close_settings.png differ diff --git a/res/drawable-hdpi/ic_zoom_big.9.png b/res/drawable-hdpi/ic_zoom_big.9.png index 8e6380e9..8c6cdeae 100644 Binary files a/res/drawable-hdpi/ic_zoom_big.9.png and b/res/drawable-hdpi/ic_zoom_big.9.png differ diff --git a/res/drawable-hdpi/ic_zoom_big_dark.9.png b/res/drawable-hdpi/ic_zoom_big_dark.9.png index 340254b9..63ba20e8 100644 Binary files a/res/drawable-hdpi/ic_zoom_big_dark.9.png and b/res/drawable-hdpi/ic_zoom_big_dark.9.png differ diff --git a/res/drawable-hdpi/list_divider.9.png b/res/drawable-hdpi/list_divider.9.png new file mode 100644 index 00000000..986ab0b9 Binary files /dev/null and b/res/drawable-hdpi/list_divider.9.png differ diff --git a/res/drawable-mdpi/btn_close_settings.png b/res/drawable-mdpi/btn_close_settings.png index 4a04aa54..dc24d946 100644 Binary files a/res/drawable-mdpi/btn_close_settings.png and b/res/drawable-mdpi/btn_close_settings.png differ diff --git a/res/drawable-mdpi/ic_zoom_big.9.png b/res/drawable-mdpi/ic_zoom_big.9.png index e551fd06..f5e31b44 100644 Binary files a/res/drawable-mdpi/ic_zoom_big.9.png and b/res/drawable-mdpi/ic_zoom_big.9.png differ diff --git a/res/drawable-mdpi/ic_zoom_big_dark.9.png b/res/drawable-mdpi/ic_zoom_big_dark.9.png index 4c12ae5e..919db3fb 100644 Binary files a/res/drawable-mdpi/ic_zoom_big_dark.9.png and b/res/drawable-mdpi/ic_zoom_big_dark.9.png differ diff --git a/res/drawable-mdpi/list_divider.9.png b/res/drawable-mdpi/list_divider.9.png new file mode 100644 index 00000000..986ab0b9 Binary files /dev/null and b/res/drawable-mdpi/list_divider.9.png differ diff --git a/res/drawable-xhdpi/btn_close_settings.png b/res/drawable-xhdpi/btn_close_settings.png index d252c657..4226f346 100644 Binary files a/res/drawable-xhdpi/btn_close_settings.png and b/res/drawable-xhdpi/btn_close_settings.png differ diff --git a/res/drawable-xhdpi/ic_zoom_big.9.png b/res/drawable-xhdpi/ic_zoom_big.9.png index 48b9e246..48dbf4f8 100644 Binary files a/res/drawable-xhdpi/ic_zoom_big.9.png and b/res/drawable-xhdpi/ic_zoom_big.9.png differ diff --git a/res/drawable-xhdpi/ic_zoom_big_dark.9.png b/res/drawable-xhdpi/ic_zoom_big_dark.9.png index b33b5462..43b27403 100644 Binary files a/res/drawable-xhdpi/ic_zoom_big_dark.9.png and b/res/drawable-xhdpi/ic_zoom_big_dark.9.png differ diff --git a/res/drawable-xhdpi/list_divider.9.png b/res/drawable-xhdpi/list_divider.9.png new file mode 100644 index 00000000..e62f011d Binary files /dev/null and b/res/drawable-xhdpi/list_divider.9.png differ diff --git a/res/layout-sw600dp/pano_capture.xml b/res/layout-sw600dp/pano_capture.xml new file mode 100644 index 00000000..2f58b107 --- /dev/null +++ b/res/layout-sw600dp/pano_capture.xml @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout-sw600dp/pano_review.xml b/res/layout-sw600dp/pano_review.xml new file mode 100644 index 00000000..c16df1ac --- /dev/null +++ b/res/layout-sw600dp/pano_review.xml @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout-sw600dp/share_popup.xml b/res/layout-sw600dp/share_popup.xml new file mode 100644 index 00000000..5f72365c --- /dev/null +++ b/res/layout-sw600dp/share_popup.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout-sw600dp/viewfinder_labels_video.xml b/res/layout-sw600dp/viewfinder_labels_video.xml new file mode 100644 index 00000000..6fa7d2dc --- /dev/null +++ b/res/layout-sw600dp/viewfinder_labels_video.xml @@ -0,0 +1,31 @@ + + + + + + + diff --git a/res/layout-w1024dp/priority_indicators.xml b/res/layout-w1024dp/priority_indicators.xml new file mode 100644 index 00000000..49264842 --- /dev/null +++ b/res/layout-w1024dp/priority_indicators.xml @@ -0,0 +1,34 @@ + + + + + + + diff --git a/res/layout/bg_replacement_training_message.xml b/res/layout/bg_replacement_training_message.xml index 382c7c48..449e8df9 100644 --- a/res/layout/bg_replacement_training_message.xml +++ b/res/layout/bg_replacement_training_message.xml @@ -16,20 +16,20 @@