blob: 642908e3c28e08591430647720eb2a189c70e2c9 [file] [log] [blame]
Jeff Sharkey2ae666e2009-07-21 19:30:57 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2007 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
Daniel Lehmann850a8cc2010-11-11 18:16:31 -080017<view
Dmitri Plotnikov18ffaa22010-12-03 14:28:00 -080018 class="com.android.contacts.editor.PhotoEditorView"
Jeff Sharkey2ae666e2009-07-21 19:30:57 -070019 xmlns:android="http://schemas.android.com/apk/res/android"
Jeff Sharkeyaad88482009-08-29 18:19:20 -070020 android:layout_width="@dimen/edit_photo_size"
21 android:layout_height="@dimen/edit_photo_size"
Daniel Lehmann850a8cc2010-11-11 18:16:31 -080022 >
23 <ImageView
24 android:id="@+id/photo"
25 android:layout_width="@dimen/edit_photo_size"
26 android:layout_height="@dimen/edit_photo_size"
27 android:src="@drawable/ic_contact_picture"
28 android:cropToPadding="true"
29 android:scaleType="centerCrop"
30 android:gravity="center"
31 />
32 <View
33 android:id="@+id/frame"
34 android:layout_width="@dimen/edit_photo_size"
35 android:layout_height="@dimen/edit_photo_size"
36 android:clickable="true"
37 android:focusable="true"
38 android:contentDescription="@string/description_contact_photo"
39 android:background="@drawable/change_photo_box_holo_light"
40 />
41</view>