blob: 891450c8b6387305508ed8550f0225c37be922fe [file] [log] [blame]
Walter Jang261e1062015-03-13 11:07:23 -07001<?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 Mai363af602016-09-28 10:01:23 -070018<com.android.contacts.editor.PhotoEditorView
Walter Jang261e1062015-03-13 11:07:23 -070019 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 Jang4a268d32015-03-16 18:18:59 -070031 <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 Jangff16eea2015-03-16 13:35:08 -070037 <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:src="@drawable/ic_photo_camera_white_24dp" />
47
48 <View
49 android:id="@+id/photo_touch_intercept_overlay"
guanxiongliu3fd45f02016-02-19 12:20:20 -080050 android:focusable="true"
Walter Jangff16eea2015-03-16 13:35:08 -070051 android:layout_width="match_parent"
52 android:layout_height="match_parent"
Walter Jang356e93d2015-05-21 09:43:15 -070053 android:background="@drawable/item_background_material_dark"
Gary Mai363af602016-09-28 10:01:23 -070054 android:contentDescription="@string/editor_change_photo_content_description" />
Walter Jangff16eea2015-03-16 13:35:08 -070055
Gary Mai363af602016-09-28 10:01:23 -070056</com.android.contacts.editor.PhotoEditorView>