feat:修改资料页UI调整:增加箭头icon
This commit is contained in:
@@ -139,10 +139,9 @@ class UserInfoModifyActivity : BaseViewBindingActivity<ActivityUserInfoModifyBin
|
||||
|
||||
private fun findViews() {
|
||||
binding.layoutAvatar.setOnClickListener(this)
|
||||
binding.tvBirth.setOnClickListener(this)
|
||||
binding.tvNick.setOnClickListener(this)
|
||||
binding.layoutBirth.setOnClickListener(this)
|
||||
binding.layoutNick.setOnClickListener(this)
|
||||
binding.layoutDesc.setOnClickListener(this)
|
||||
binding.ivDescMore.setOnClickListener(this)
|
||||
binding.layoutPhotos.setOnClickListener(this)
|
||||
binding.rlAudioRecord.setOnClickListener(this)
|
||||
val mLayoutManager = LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, true)
|
||||
@@ -215,7 +214,7 @@ class UserInfoModifyActivity : BaseViewBindingActivity<ActivityUserInfoModifyBin
|
||||
checkStoragePermission()
|
||||
isAvatar = true
|
||||
}
|
||||
R.id.tv_birth -> {
|
||||
R.id.layout_birth -> {
|
||||
if (mUserInfo != null) {
|
||||
val year = TimeUtils.getYear(
|
||||
mUserInfo?.birth ?: 0L
|
||||
@@ -236,12 +235,12 @@ class UserInfoModifyActivity : BaseViewBindingActivity<ActivityUserInfoModifyBin
|
||||
show(supportFragmentManager, "DATEPICKER_TAG_1")
|
||||
}
|
||||
}
|
||||
R.id.tv_nick -> UIHelper.showModifyInfoAct(
|
||||
R.id.layout_nick -> UIHelper.showModifyInfoAct(
|
||||
this@UserInfoModifyActivity,
|
||||
Method.NICK,
|
||||
ModifyInfoActivity.NICK_MODIFY
|
||||
)
|
||||
R.id.iv_desc_more, R.id.layout_desc -> UIHelper.showModifyInfoAct(
|
||||
R.id.layout_desc -> UIHelper.showModifyInfoAct(
|
||||
this@UserInfoModifyActivity,
|
||||
Method.DESC,
|
||||
ModifyInfoActivity.CONTENT_MODIFY
|
||||
|
@@ -23,7 +23,6 @@
|
||||
android:layout_height="76dp"
|
||||
android:layout_marginStart="15dp">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -43,16 +42,15 @@
|
||||
android:src="@drawable/default_avatar" />
|
||||
|
||||
<androidx.constraintlayout.utils.widget.ImageFilterView
|
||||
android:layout_width="55dp"
|
||||
android:id="@+id/iv_avatar_auditing"
|
||||
android:layout_width="55dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@id/civ_avatar"
|
||||
android:layout_alignRight="@id/civ_avatar"
|
||||
android:layout_alignBottom="@id/civ_avatar"
|
||||
android:visibility="visible"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/ic_avatar_auditing"
|
||||
/>
|
||||
android:visibility="visible" />
|
||||
|
||||
|
||||
<ImageView
|
||||
@@ -75,10 +73,10 @@
|
||||
android:background="@color/line_353548" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/layout_nick"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingRight="15dp">
|
||||
android:paddingLeft="15dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -92,6 +90,8 @@
|
||||
android:id="@+id/tv_nick"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_toStartOf="@+id/iv_arrow_nick"
|
||||
android:background="@null"
|
||||
android:gravity="center_vertical|end"
|
||||
android:hint="输入您的昵称"
|
||||
@@ -99,6 +99,16 @@
|
||||
android:textColorHint="@color/text_secondary_878b9c"
|
||||
android:textSize="@dimen/font_normal" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_arrow_nick"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_gravity="center"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/arrow_right" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<View
|
||||
@@ -109,11 +119,11 @@
|
||||
android:background="@color/line_353548" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_birth"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingRight="15dp">
|
||||
android:paddingLeft="15dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -123,11 +133,11 @@
|
||||
android:textColor="@color/text_title_282828"
|
||||
android:textSize="14sp" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_birth"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical|end"
|
||||
android:hint="选择您的生日"
|
||||
@@ -135,6 +145,13 @@
|
||||
android:textColorHint="@color/text_secondary_878b9c"
|
||||
android:textSize="@dimen/font_normal" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_arrow_birth"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/arrow_right" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
@@ -148,9 +165,9 @@
|
||||
android:id="@+id/layout_photos"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="15dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -198,8 +215,8 @@
|
||||
android:id="@+id/rl_audio_record"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="15dp"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
@@ -256,11 +273,12 @@
|
||||
android:background="@color/line_353548" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_desc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="15dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -269,35 +287,16 @@
|
||||
android:textColor="@color/text_title_282828"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="18dp"
|
||||
android:layout_marginBottom="18dp"
|
||||
<TextView
|
||||
android:id="@+id/tv_desc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_desc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical|end"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_desc"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:hint="@string/label_hint_desc_setting"
|
||||
android:textColor="@color/text_normal_282828"
|
||||
android:textColorHint="@color/text_secondary_878b9c" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
android:gravity="center_vertical|end"
|
||||
android:hint="@string/label_hint_desc_setting"
|
||||
android:textColor="@color/text_normal_282828"
|
||||
android:textColorHint="@color/text_secondary_878b9c" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_desc_more"
|
||||
|
Reference in New Issue
Block a user