fix: 首次提交
This commit is contained in:
74
SettingsLib/res/layout/edit_user_info_dialog_content.xml
Normal file
74
SettingsLib/res/layout/edit_user_info_dialog_content.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<!--
|
||||
Copyright (C) 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/user_info_editor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:baselineAligned="false"
|
||||
android:orientation="vertical">
|
||||
<FrameLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center">
|
||||
<ImageView
|
||||
android:id="@+id/user_photo"
|
||||
android:layout_width="@dimen/user_photo_size_in_user_info_dialog"
|
||||
android:layout_height="@dimen/user_photo_size_in_user_info_dialog"
|
||||
android:contentDescription="@string/user_image_photo_selector"
|
||||
android:scaleType="fitCenter"/>
|
||||
<ImageView
|
||||
android:id="@+id/add_a_photo_icon"
|
||||
android:layout_width="@dimen/add_a_photo_icon_size_in_user_info_dialog"
|
||||
android:layout_height="@dimen/add_a_photo_icon_size_in_user_info_dialog"
|
||||
android:src="@drawable/add_a_photo_circled"
|
||||
android:layout_gravity="bottom|right"/>
|
||||
</FrameLayout>
|
||||
<TextView
|
||||
android:id="@+id/edit_user_info_message"
|
||||
android:gravity="center"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="6dp"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_marginTop="24dp"
|
||||
android:textAppearance="@style/android:TextAppearance.Material.Body1"
|
||||
android:text="@string/edit_user_info_message"
|
||||
/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/user_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/user_name_height_in_user_info_dialog"
|
||||
android:layout_gravity="center"
|
||||
android:minWidth="200dp"
|
||||
android:layout_marginStart="6dp"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_marginTop="24dp"
|
||||
android:minHeight="@dimen/min_tap_target_size"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textAlignment="viewStart"
|
||||
android:inputType="text|textCapWords"
|
||||
android:selectAllOnFocus="true"
|
||||
android:hint="@string/user_nickname"
|
||||
android:maxLength="100"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user