Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2013 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | <merge xmlns:android="http://schemas.android.com/apk/res/android" |
| 17 | xmlns:camera="http://schemas.android.com/apk/res/com.android.camera2" |
| 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="match_parent"> |
| 20 | |
| 21 | <FrameLayout |
| 22 | android:id="@+id/bottombar_capture" |
| 23 | android:layout_width="match_parent" |
| 24 | android:layout_height="match_parent" |
| 25 | android:visibility="visible" > |
| 26 | <com.android.camera.ShutterButton |
| 27 | android:id="@+id/shutter_button" |
Spike Sprague | 3b92e2f | 2014-01-02 11:42:12 -0800 | [diff] [blame] | 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="match_parent" |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 30 | android:layout_gravity="center" |
Spike Sprague | 3b92e2f | 2014-01-02 11:42:12 -0800 | [diff] [blame] | 31 | android:scaleType="center" |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 32 | android:clickable="true" |
| 33 | android:contentDescription="@string/accessibility_shutter_button" |
| 34 | android:focusable="true" |
| 35 | android:src="@drawable/ic_camera_normal" /> |
| 36 | </FrameLayout> |
| 37 | |
| 38 | <com.android.camera.ui.TopRightWeightedLayout |
Erin Dahlgren | 56688f7 | 2014-01-09 14:30:34 -0800 | [diff] [blame] | 39 | android:id="@+id/bottombar_options" |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 40 | android:layout_width="match_parent" |
| 41 | android:layout_height="match_parent" |
| 42 | android:orientation="horizontal" |
| 43 | android:gravity="center" |
| 44 | android:visibility="invisible" |
| 45 | android:background="@null" > |
| 46 | <com.android.camera.MultiToggleImageButton |
| 47 | android:id="@+id/refocus_toggle_button" |
Spike Sprague | 3b92e2f | 2014-01-02 11:42:12 -0800 | [diff] [blame] | 48 | android:layout_width="0dp" |
| 49 | android:layout_height="match_parent" |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 50 | android:layout_weight="1" |
| 51 | android:background="@null" |
Spike Sprague | 79718f6 | 2014-01-28 18:48:22 -0800 | [diff] [blame^] | 52 | camera:imageIds="@array/refocus_icons" |
| 53 | camera:contentDescriptionIds="@array/refocus_descriptions" /> |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 54 | <com.android.camera.MultiToggleImageButton |
| 55 | android:id="@+id/hdr_plus_toggle_button" |
Spike Sprague | 3b92e2f | 2014-01-02 11:42:12 -0800 | [diff] [blame] | 56 | android:layout_width="0dp" |
| 57 | android:layout_height="match_parent" |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 58 | android:background="@null" |
| 59 | android:layout_weight="1" |
Spike Sprague | 79718f6 | 2014-01-28 18:48:22 -0800 | [diff] [blame^] | 60 | camera:imageIds="@array/pref_camera_hdr_plus_icons" |
| 61 | camera:contentDescriptionIds="@array/hdr_plus_descriptions" /> |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 62 | <com.android.camera.MultiToggleImageButton |
| 63 | android:id="@+id/flash_toggle_button" |
Spike Sprague | 3b92e2f | 2014-01-02 11:42:12 -0800 | [diff] [blame] | 64 | android:layout_width="0dp" |
| 65 | android:layout_height="match_parent" |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 66 | android:layout_weight="1" |
| 67 | android:background="@null" |
Spike Sprague | 79718f6 | 2014-01-28 18:48:22 -0800 | [diff] [blame^] | 68 | camera:imageIds="@array/camera_flashmode_icons" |
| 69 | camera:contentDescriptionIds="@array/camera_flash_descriptions" /> |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 70 | <com.android.camera.MultiToggleImageButton |
| 71 | android:id="@+id/camera_toggle_button" |
Spike Sprague | 3b92e2f | 2014-01-02 11:42:12 -0800 | [diff] [blame] | 72 | android:layout_width="0dp" |
| 73 | android:layout_height="match_parent" |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 74 | android:layout_weight="1" |
| 75 | android:background="@null" |
Spike Sprague | 79718f6 | 2014-01-28 18:48:22 -0800 | [diff] [blame^] | 76 | camera:imageIds="@array/camera_id_icons" |
| 77 | camera:contentDescriptionIds="@array/camera_id_descriptions" /> |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 78 | <ImageButton |
| 79 | android:id="@+id/reference_toggle" |
Spike Sprague | 3b92e2f | 2014-01-02 11:42:12 -0800 | [diff] [blame] | 80 | android:layout_width="0dp" |
| 81 | android:layout_height="match_parent" |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 82 | android:src="@drawable/ic_capture_options" |
| 83 | android:visibility="invisible" |
| 84 | android:layout_weight="1" |
| 85 | android:background="@null" /> |
| 86 | </com.android.camera.ui.TopRightWeightedLayout> |
| 87 | |
| 88 | <com.android.camera.ui.TopRightMostOverlay |
Erin Dahlgren | 56688f7 | 2014-01-09 14:30:34 -0800 | [diff] [blame] | 89 | android:id="@+id/bottombar_options_overlay" |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 90 | android:layout_width="match_parent" |
| 91 | android:layout_height="match_parent" |
| 92 | android:background="@null" > |
Spike Sprague | 3b92e2f | 2014-01-02 11:42:12 -0800 | [diff] [blame] | 93 | <com.android.camera.ToggleImageButton |
Erin Dahlgren | 56688f7 | 2014-01-09 14:30:34 -0800 | [diff] [blame] | 94 | android:id="@+id/bottombar_options_toggle" |
Spike Sprague | 3b92e2f | 2014-01-02 11:42:12 -0800 | [diff] [blame] | 95 | android:layout_width="wrap_content" |
Spike Sprague | 43f2ddd | 2014-01-08 10:05:02 -0800 | [diff] [blame] | 96 | android:layout_height="wrap_content" |
Erin Dahlgren | ede9a42 | 2014-01-13 12:25:45 -0800 | [diff] [blame] | 97 | android:scaleType="center" |
Spike Sprague | 3b92e2f | 2014-01-02 11:42:12 -0800 | [diff] [blame] | 98 | android:background="@null" |
Spike Sprague | 79718f6 | 2014-01-28 18:48:22 -0800 | [diff] [blame^] | 99 | camera:imageIds="@array/settings_toggle_icons" |
| 100 | camera:contentDescriptionIds="@array/settings_toggle_descriptions" /> |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 101 | </com.android.camera.ui.TopRightMostOverlay> |
| 102 | |
| 103 | <com.android.camera.ui.TopRightWeightedLayout |
| 104 | android:id="@+id/bottombar_intent" |
| 105 | android:layout_width="match_parent" |
| 106 | android:layout_height="match_parent" |
| 107 | android:orientation="horizontal" |
| 108 | android:gravity="center" |
| 109 | android:visibility="invisible" |
| 110 | android:background="@null" > |
| 111 | <ImageButton |
| 112 | android:id="@+id/cancel_button" |
| 113 | android:layout_width="wrap_content" |
| 114 | android:layout_height="wrap_content" |
| 115 | android:src="@drawable/ic_cancel" |
| 116 | android:layout_weight="1" |
Spike Sprague | 79718f6 | 2014-01-28 18:48:22 -0800 | [diff] [blame^] | 117 | android:background="@null" |
| 118 | android:contentDescription="@string/cancel_button_description" /> |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 119 | <ImageButton |
| 120 | android:id="@+id/done_button" |
| 121 | android:layout_width="wrap_content" |
| 122 | android:layout_height="wrap_content" |
| 123 | android:src="@drawable/ic_confirm" |
| 124 | android:layout_weight="1" |
Spike Sprague | 79718f6 | 2014-01-28 18:48:22 -0800 | [diff] [blame^] | 125 | android:background="@null" |
| 126 | android:contentDescription="@string/done_button_description" /> |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 127 | <ImageButton |
| 128 | android:id="@+id/retake_button" |
| 129 | android:layout_width="wrap_content" |
| 130 | android:layout_height="wrap_content" |
| 131 | android:src="@drawable/ic_back" |
| 132 | android:layout_weight="1" |
Spike Sprague | 79718f6 | 2014-01-28 18:48:22 -0800 | [diff] [blame^] | 133 | android:background="@null" |
| 134 | android:contentDescription="@string/retake_button_description" /> |
Erin Dahlgren | 4efa8b5 | 2013-12-17 18:31:35 -0800 | [diff] [blame] | 135 | </com.android.camera.ui.TopRightWeightedLayout> |
| 136 | </merge> |