Walter Jang | 261e106 | 2015-03-13 11:07:23 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2015 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
Gary Mai | 363af60 | 2016-09-28 10:01:23 -0700 | [diff] [blame] | 18 | <com.android.contacts.editor.PhotoEditorView |
Walter Jang | 261e106 | 2015-03-13 11:07:23 -0700 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:id="@+id/photo_editor" |
| 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="match_parent" |
| 23 | android:layout_gravity="center_horizontal"> |
| 24 | |
| 25 | <com.android.contacts.widget.QuickContactImageView |
| 26 | android:id="@+id/photo" |
| 27 | android:layout_width="match_parent" |
| 28 | android:layout_height="match_parent" |
| 29 | android:scaleType="centerCrop"/> |
| 30 | |
Walter Jang | 4a268d3 | 2015-03-16 18:18:59 -0700 | [diff] [blame] | 31 | <View |
| 32 | android:id="@+id/photo_icon_overlay" |
| 33 | android:layout_height="56dp" |
| 34 | android:layout_width="match_parent" |
| 35 | android:layout_alignParentBottom="true" /> |
| 36 | |
Walter Jang | ff16eea | 2015-03-16 13:35:08 -0700 | [diff] [blame] | 37 | <ImageView |
| 38 | android:id="@+id/photo_icon" |
| 39 | android:layout_width="24dp" |
| 40 | android:layout_height="24dp" |
| 41 | android:layout_alignParentBottom="true" |
| 42 | android:layout_alignParentEnd="true" |
| 43 | android:layout_marginBottom="16dp" |
| 44 | android:layout_marginEnd="16dp" |
| 45 | android:background="?android:attr/selectableItemBackground" |
John Shao | bd9ef3c | 2016-12-15 12:42:03 -0800 | [diff] [blame] | 46 | android:src="@drawable/quantum_ic_camera_alt_vd_theme_24" /> |
Walter Jang | ff16eea | 2015-03-16 13:35:08 -0700 | [diff] [blame] | 47 | |
| 48 | <View |
| 49 | android:id="@+id/photo_touch_intercept_overlay" |
guanxiongliu | 3fd45f0 | 2016-02-19 12:20:20 -0800 | [diff] [blame] | 50 | android:focusable="true" |
Walter Jang | ff16eea | 2015-03-16 13:35:08 -0700 | [diff] [blame] | 51 | android:layout_width="match_parent" |
| 52 | android:layout_height="match_parent" |
Walter Jang | 356e93d | 2015-05-21 09:43:15 -0700 | [diff] [blame] | 53 | android:background="@drawable/item_background_material_dark" |
Gary Mai | 363af60 | 2016-09-28 10:01:23 -0700 | [diff] [blame] | 54 | android:contentDescription="@string/editor_change_photo_content_description" /> |
Walter Jang | ff16eea | 2015-03-16 13:35:08 -0700 | [diff] [blame] | 55 | |
Gary Mai | 363af60 | 2016-09-28 10:01:23 -0700 | [diff] [blame] | 56 | </com.android.contacts.editor.PhotoEditorView> |