diff options
Diffstat (limited to 'res/layout-port')
-rw-r--r-- | res/layout-port/camera_shutter_switcher.xml | 47 | ||||
-rw-r--r-- | res/layout-port/keyguard_widget.xml | 60 | ||||
-rw-r--r-- | res/layout-port/on_screen_hint.xml | 31 | ||||
-rw-r--r-- | res/layout-port/pano_module_capture.xml | 25 | ||||
-rw-r--r-- | res/layout-port/pano_review.xml | 77 | ||||
-rw-r--r-- | res/layout-port/photo_module_content.xml | 55 | ||||
-rw-r--r-- | res/layout-port/preview_frame_pano.xml | 110 | ||||
-rw-r--r-- | res/layout-port/review_module_control.xml | 44 | ||||
-rw-r--r-- | res/layout-port/switcher_popup.xml | 29 | ||||
-rw-r--r-- | res/layout-port/video_module.xml | 58 |
10 files changed, 536 insertions, 0 deletions
diff --git a/res/layout-port/camera_shutter_switcher.xml b/res/layout-port/camera_shutter_switcher.xml new file mode 100644 index 000000000..db73fb080 --- /dev/null +++ b/res/layout-port/camera_shutter_switcher.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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" + android:id="@+id/camera_shutter_switcher" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <View + android:id="@+id/controls" + style="@style/CameraControls" + android:layout_alignParentBottom="true" + android:layout_centerHorizontal="true" /> + + <com.android.camera.ShutterButton + android:id="@+id/shutter_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_centerHorizontal="true" + android:layout_marginBottom="@dimen/shutter_offset" + android:clickable="true" + android:contentDescription="@string/accessibility_shutter_button" + android:focusable="true" + android:scaleType="center" + android:src="@drawable/btn_new_shutter" /> + + <com.android.camera.ui.CameraSwitcher + android:id="@+id/camera_switcher" + style="@style/SwitcherButton" + android:layout_alignParentBottom="true" + android:layout_alignLeft="@id/controls" + android:layout_marginBottom="2dip" + android:contentDescription="@string/accessibility_mode_picker" /> +</RelativeLayout>
\ No newline at end of file diff --git a/res/layout-port/keyguard_widget.xml b/res/layout-port/keyguard_widget.xml new file mode 100644 index 000000000..1fdbb27e1 --- /dev/null +++ b/res/layout-port/keyguard_widget.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/black"> + + <FrameLayout android:id="@+id/controls" + style="@style/CameraControls" + android:layout_alignParentBottom="true" + android:layout_centerHorizontal="true"> + + <include layout="@layout/menu_indicators_keyguard" + android:layout_width="80dip" + android:layout_height="80dip" + android:layout_gravity="bottom|right" + android:layout_marginBottom="-2dip" + android:layout_marginRight="-5dip" /> + + </FrameLayout> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_centerHorizontal="true" + android:layout_marginBottom="@dimen/shutter_offset" + android:src="@drawable/btn_new_shutter" /> + + <ImageView + style="@style/SwitcherButton" + android:layout_alignParentBottom="true" + android:layout_alignLeft="@id/controls" + android:layout_marginBottom="2dip" + android:src="@drawable/ic_switch_camera" + android:scaleType="center" /> + + <ImageView + style="@style/SwitcherButton" + android:layout_alignParentBottom="true" + android:layout_alignLeft="@id/controls" + android:layout_marginBottom="2dip" + android:src="@drawable/ic_switcher_menu_indicator" + android:scaleType="center" /> + +</RelativeLayout> diff --git a/res/layout-port/on_screen_hint.xml b/res/layout-port/on_screen_hint.xml new file mode 100644 index 000000000..467b67f78 --- /dev/null +++ b/res/layout-port/on_screen_hint.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (c) 2009, 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. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="match_parent" + android:layout_width="match_parent" + android:orientation="horizontal" + android:background="@drawable/on_screen_hint_frame"> + <TextView + android:id="@+id/message" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:textAppearance="@style/OnScreenHintTextAppearance.Small" + android:textColor="#ffffffff" + android:shadowColor="#BB000000" + android:shadowRadius="2.75" /> +</LinearLayout> + + diff --git a/res/layout-port/pano_module_capture.xml b/res/layout-port/pano_module_capture.xml new file mode 100644 index 000000000..762447e77 --- /dev/null +++ b/res/layout-port/pano_module_capture.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/camera_app_root" + android:layout_height="match_parent" + android:layout_width="match_parent" + android:orientation="vertical"> + + <include layout="@layout/preview_frame_pano" /> + +</LinearLayout> diff --git a/res/layout-port/pano_review.xml b/res/layout-port/pano_review.xml new file mode 100644 index 000000000..b2e3d8dad --- /dev/null +++ b/res/layout-port/pano_review.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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" + android:id="@+id/pano_review_layout" + android:visibility="gone" + android:layout_height="match_parent" + android:layout_width="match_parent"> + + <LinearLayout + android:orientation="vertical" + android:layout_height="match_parent" + android:layout_width="match_parent"> + <TextView style="@style/PanoViewHorizontalBar" + android:text="@string/pano_review_rendering" + android:textAppearance="?android:textAppearanceMedium" + android:gravity="center" /> + + <com.android.camera.ui.RotateLayout + android:id="@+id/pano_rotate_reviewarea" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1.5"> + <ImageView android:id="@+id/pano_reviewarea" + android:scaleType="fitCenter" + android:layout_height="match_parent" + android:layout_width="match_parent" /> + </com.android.camera.ui.RotateLayout> + + <View style="@style/PanoViewHorizontalBar"/> + </LinearLayout> + + <com.android.camera.ui.RotateLayout + android:id="@+id/pano_saving_progress_bar_layout" + android:layout_centerHorizontal="true" + android:layout_above="@+id/shutter_button_placeholder" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + <com.android.camera.PanoProgressBar + android:id="@+id/pano_saving_progress_bar" + android:src="@drawable/ic_pan_progression" + android:layout_centerInParent="true" + android:layout_height="wrap_content" + android:layout_width="wrap_content" /> + </com.android.camera.ui.RotateLayout> + + <ImageView android:id="@id/shutter_button_placeholder" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:layout_alignParentBottom="true" + android:layout_marginBottom="@dimen/shutter_offset" + android:visibility="invisible" + android:layout_gravity="center" + android:src="@drawable/btn_shutter_default"/> + + <com.android.camera.ui.RotateImageView android:id="@id/pano_review_cancel_button" + style="@style/ReviewControlIcon" + android:contentDescription="@string/accessibility_review_cancel" + android:layout_alignParentBottom="true" + android:layout_centerHorizontal="true" + android:layout_centerVertical="false" + android:src="@drawable/ic_menu_cancel_holo_light" /> +</RelativeLayout> diff --git a/res/layout-port/photo_module_content.xml b/res/layout-port/photo_module_content.xml new file mode 100644 index 000000000..79438a5d0 --- /dev/null +++ b/res/layout-port/photo_module_content.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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. +--> +<!-- This layout is shared by phone and tablet in landscape orientation. --> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/camera_app" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <include layout="@layout/preview_module_frame"/> + + <FrameLayout + style="@style/CameraControls" + android:layout_gravity="center" > + + <View + android:id="@+id/blocker" + android:layout_width="match_parent" + android:layout_height="@dimen/switcher_size" + android:layout_gravity="bottom" + android:background="@drawable/switcher_bg" + android:clickable="true" /> + + <include layout="@layout/menu_indicators" + android:layout_width="80dip" + android:layout_height="80dip" + android:layout_gravity="bottom|right" + android:layout_marginBottom="-2dip" + android:layout_marginRight="-5dip" /> + + <include layout="@layout/review_module_control" + android:layout_marginBottom="2dip" /> + + <View + android:id="@+id/menu" + style="@style/SwitcherButton" + android:layout_gravity="bottom|right" + android:layout_marginBottom="2dip" + android:contentDescription="@string/accessibility_menu_button" /> + + </FrameLayout> + +</FrameLayout> diff --git a/res/layout-port/preview_frame_pano.xml b/res/layout-port/preview_frame_pano.xml new file mode 100644 index 000000000..09d7899e7 --- /dev/null +++ b/res/layout-port/preview_frame_pano.xml @@ -0,0 +1,110 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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" + android:id="@+id/frame_layout" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1"> + + <LinearLayout android:layout_width="match_parent" + android:layout_height="match_parent" + android:baselineAligned="false" + android:orientation="vertical"> + <FrameLayout style="@style/PanoViewHorizontalBar"> + <TextView android:id="@+id/pano_capture_indicator" + android:text="@string/pano_capture_indication" + android:textAppearance="?android:textAppearanceMedium" + android:visibility="gone" + android:layout_gravity="center" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + </FrameLayout> + + <com.android.camera.ui.LayoutNotifyView + android:id="@+id/pano_preview_area" + android:visibility="invisible" + android:background="@drawable/ic_pan_border_fast" + android:layout_gravity="center" + android:layout_weight="2" + android:layout_width="match_parent" + android:layout_height="0dp" /> + + <View style="@style/PanoViewHorizontalBar"/> + </LinearLayout> + + <!-- The hint for "Too fast" text view --> + <com.android.camera.ui.RotateLayout + android:id="@+id/pano_capture_too_fast_textview_layout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true"> + <TextView android:id="@+id/pano_capture_too_fast_textview" + android:text="@string/pano_too_fast_prompt" + android:textAppearance="?android:textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:visibility="gone" /> + </com.android.camera.ui.RotateLayout> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_above="@+id/placeholder"> + <com.android.camera.ui.RotateLayout + android:id="@+id/pano_pan_progress_bar_layout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true"> + <com.android.camera.PanoProgressBar + android:id="@+id/pano_pan_progress_bar" + android:visibility="gone" + android:src="@drawable/ic_pan_progression" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + </com.android.camera.ui.RotateLayout> + + <ImageView + android:id="@+id/pano_pan_left_indicator" + android:src="@drawable/pano_direction_left_indicator" + android:visibility="gone" + android:layout_marginRight="5dp" + android:layout_toLeftOf="@id/pano_pan_progress_bar_layout" + android:layout_centerVertical="true" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + <ImageView + android:id="@+id/pano_pan_right_indicator" + android:src="@drawable/pano_direction_right_indicator" + android:visibility="gone" + android:layout_marginLeft="5dp" + android:layout_toRightOf="@id/pano_pan_progress_bar_layout" + android:layout_centerVertical="true" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + </RelativeLayout> + + <ImageView + android:id="@id/placeholder" + android:visibility="invisible" + android:layout_centerHorizontal="true" + android:layout_alignParentBottom="true" + android:layout_marginBottom="@dimen/shutter_offset" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/btn_shutter_default" /> + +</RelativeLayout> diff --git a/res/layout-port/review_module_control.xml b/res/layout-port/review_module_control.xml new file mode 100644 index 000000000..549775430 --- /dev/null +++ b/res/layout-port/review_module_control.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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. +--> +<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" + style="@style/ReviewControlIcon" + android:contentDescription="@string/accessibility_review_ok" + android:visibility="gone" + android:layout_gravity="right|bottom" + android:background="@drawable/bg_pressed" + android:src="@drawable/ic_menu_done_holo_light" /> + + <ImageView android:id="@+id/btn_retake" + style="@style/ReviewControlIcon" + android:contentDescription="@string/accessibility_review_retake" + android:layout_gravity="bottom|center_horizontal" + android:scaleType="center" + android:focusable="true" + android:visibility="gone" + android:background="@drawable/bg_pressed" + android:src="@drawable/ic_btn_shutter_retake" /> + + <com.android.camera.ui.RotateImageView android:id="@+id/btn_cancel" + style="@style/ReviewControlIcon" + android:contentDescription="@string/accessibility_review_cancel" + android:visibility="gone" + android:layout_gravity="left|bottom" + android:background="@drawable/bg_pressed" + android:src="@drawable/ic_menu_cancel_holo_light" /> +</FrameLayout> diff --git a/res/layout-port/switcher_popup.xml b/res/layout-port/switcher_popup.xml new file mode 100644 index 000000000..b1481a347 --- /dev/null +++ b/res/layout-port/switcher_popup.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/content" + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignBottom="@id/camera_switcher" + android:layout_alignLeft="@id/camera_switcher" + android:layout_marginLeft="8dip" + android:layout_marginBottom="8dip" + android:paddingLeft="16dip" + android:paddingRight="16dip" + android:paddingTop="8dip" + android:paddingBottom="8dip" + android:background="#80000000" /> diff --git a/res/layout-port/video_module.xml b/res/layout-port/video_module.xml new file mode 100644 index 000000000..7aedb8c4b --- /dev/null +++ b/res/layout-port/video_module.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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. +--> +<!-- This layout is shared by phone and tablet in landscape orientation. --> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/camera_app_root" + android:layout_height="match_parent" + android:layout_width="match_parent"> + <include layout="@layout/preview_module_frame_video"/> + + <RelativeLayout + style="@style/CameraControls" + android:layout_centerHorizontal="true" > + + <View + android:id="@+id/blocker" + android:layout_width="match_parent" + android:layout_height="@dimen/switcher_size" + android:background="@drawable/switcher_bg" + android:clickable="true" + android:layout_alignParentBottom="true" /> + + <include layout="@layout/menu_indicators" + android:layout_width="80dip" + android:layout_height="80dip" + android:layout_marginRight="-5dip" + android:layout_marginBottom="-2dip" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" /> + + <include layout="@layout/bg_replacement_training_message"/> + + <include layout="@layout/review_module_control" + android:layout_marginBottom="2dip" /> + + <View + android:id="@+id/menu" + style="@style/SwitcherButton" + android:contentDescription="@string/accessibility_menu_button" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:layout_marginBottom="2dip" /> + + </RelativeLayout> + +</RelativeLayout> |