Svetoslav | bf3391f | 2013-04-15 12:20:39 -0700 | [diff] [blame] | 1 | <!-- |
| 2 | Copyright (C) 2013 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 | <LinearLayout |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:layout_width="wrap_content" |
| 19 | android:layout_height="wrap_content" |
| 20 | android:baselineAligned="false" |
| 21 | android:padding="16dip"> |
| 22 | |
| 23 | <ImageView |
| 24 | android:id="@+id/user_photo" |
| 25 | android:layout_width="56dip" |
| 26 | android:layout_height="56dip" |
| 27 | android:layout_gravity="bottom" |
Fabrice Di Meglio | ade5761 | 2014-09-10 13:12:25 -0700 | [diff] [blame] | 28 | android:contentDescription="@string/user_image_photo_selector" |
Svetoslav | bf3391f | 2013-04-15 12:20:39 -0700 | [diff] [blame] | 29 | android:background="@*android:drawable/spinner_background_holo_dark" |
| 30 | android:scaleType="fitCenter"/> |
| 31 | |
| 32 | <EditText |
| 33 | android:id="@+id/user_name" |
| 34 | android:layout_width="0dip" |
| 35 | android:layout_height="wrap_content" |
| 36 | android:layout_gravity="bottom" |
| 37 | android:layout_weight="1" |
| 38 | android:layout_marginStart="6dp" |
Edgar Wang | 9a2d348 | 2019-12-27 15:35:34 +0800 | [diff] [blame] | 39 | android:minHeight="@dimen/min_tap_target_size" |
Svetoslav | bf3391f | 2013-04-15 12:20:39 -0700 | [diff] [blame] | 40 | android:ellipsize="end" |
| 41 | android:singleLine="true" |
| 42 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 43 | android:textAlignment="viewStart" |
Svetoslav | bf3391f | 2013-04-15 12:20:39 -0700 | [diff] [blame] | 44 | android:inputType="text|textCapWords" |
| 45 | android:selectAllOnFocus="true" |
Jason Chiu | ca2bbc0 | 2019-07-09 16:49:36 +0800 | [diff] [blame] | 46 | android:hint="@string/user_nickname" |
| 47 | android:maxLength="100"/> |
Svetoslav | bf3391f | 2013-04-15 12:20:39 -0700 | [diff] [blame] | 48 | |
| 49 | </LinearLayout> |