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 18<com.android.contacts.editor.PhotoEditorView 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 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 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" 46 android:tint="@android:color/white" 47 android:src="@drawable/quantum_ic_camera_alt_vd_theme_24" /> 48 49 <View 50 android:id="@+id/photo_touch_intercept_overlay" 51 android:focusable="true" 52 android:layout_width="match_parent" 53 android:layout_height="match_parent" 54 android:background="@drawable/item_background_material_dark" 55 android:contentDescription="@string/editor_change_photo_content_description" /> 56 57</com.android.contacts.editor.PhotoEditorView> 58