Jeff Sharkey | 2ae666e | 2009-07-21 19:30:57 -0700 | [diff] [blame] | 1 | <?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 Lehmann | 850a8cc | 2010-11-11 18:16:31 -0800 | [diff] [blame] | 17 | <view |
| 18 | class="com.android.contacts.views.editor.PhotoEditorView" |
Jeff Sharkey | 2ae666e | 2009-07-21 19:30:57 -0700 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
Jeff Sharkey | aad8848 | 2009-08-29 18:19:20 -0700 | [diff] [blame] | 20 | android:layout_width="@dimen/edit_photo_size" |
| 21 | android:layout_height="@dimen/edit_photo_size" |
Daniel Lehmann | 850a8cc | 2010-11-11 18:16:31 -0800 | [diff] [blame] | 22 | > |
| 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> |