feat:完成个人主页UI改版
This commit is contained in:
@@ -320,8 +320,6 @@ public class UserInfoActivity extends BaseBindingActivity<ActivityUserInfoBindin
|
||||
copyName();
|
||||
return true;
|
||||
});
|
||||
|
||||
mBinding.ivCopy.setOnClickListener(view -> copyName());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -599,7 +597,6 @@ public class UserInfoActivity extends BaseBindingActivity<ActivityUserInfoBindin
|
||||
|
||||
private void setLikedText(boolean isliked) {
|
||||
mIslike = isliked;
|
||||
attentionLayout.setBackgroundResource(isliked ? R.drawable.base_shape_fffdaa_23dp : R.drawable.user_info_bg_follow);
|
||||
attentionLayout.setText(getString((isliked) ? R.string.already_attention : R.string.attention));
|
||||
}
|
||||
|
||||
|
@@ -20,7 +20,7 @@ public class GradientLineRoundPagerIndicator extends LinePagerIndicator {
|
||||
|
||||
@Override
|
||||
protected void onDraw(Canvas canvas) {
|
||||
LinearGradient lg = new LinearGradient(getLineRect().left, getLineRect().top, getLineRect().right, getLineRect().bottom, new int[]{0xFFCBFF00, 0xFFCBFF00}, null, LinearGradient.TileMode.CLAMP);
|
||||
LinearGradient lg = new LinearGradient(getLineRect().left, getLineRect().top, getLineRect().right, getLineRect().bottom, new int[]{0xFF70E9FF, 0xFFAE87FF,0xFFFF5CE1}, null, LinearGradient.TileMode.CLAMP);
|
||||
getPaint().setShader(lg);
|
||||
canvas.drawRoundRect(getLineRect(), UIUtil.dip2px(mContext, 2), UIUtil.dip2px(mContext, 2), getPaint());
|
||||
}
|
||||
|
BIN
app/src/main/res/drawable-xxhdpi/user_info_ic_audio_pause.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/user_info_ic_audio_pause.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.7 KiB |
BIN
app/src/main/res/drawable-xxhdpi/user_info_ic_audio_play.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/user_info_ic_audio_play.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#80CBFF00" />
|
||||
<solid android:color="#80628DFF" />
|
||||
<corners android:radius="17dp" />
|
||||
</shape>
|
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:drawable="@drawable/base_shape_ffee00_23dp" android:state_pressed="true" />
|
||||
<item android:drawable="@drawable/base_shape_ffee00_23dp" android:state_focused="true" />
|
||||
<item android:drawable="@drawable/base_shape_ffee00_23dp" android:state_enabled="true" />
|
||||
<item android:drawable="@drawable/base_shape_fffdaa_23dp" android:state_enabled="false" />
|
||||
</selector>
|
@@ -4,8 +4,4 @@
|
||||
<corners android:radius="12dp" />
|
||||
|
||||
<gradient android:startColor="#70E9FF" android:centerColor="#AE87FF" android:endColor="#FF5CE1"/>
|
||||
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#FF1E1E1F" />
|
||||
</shape>
|
@@ -1,25 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="26dp"
|
||||
android:height="26dp"
|
||||
android:viewportWidth="26"
|
||||
android:viewportHeight="26">
|
||||
<path
|
||||
android:pathData="M13,13m-11,0a11,11 0,1 1,22 0a11,11 0,1 1,-22 0"
|
||||
android:strokeWidth="1"
|
||||
android:fillColor="#CBFF00"
|
||||
android:fillAlpha="0.5"
|
||||
android:strokeColor="#FFFFFF"
|
||||
android:fillType="evenOdd"/>
|
||||
<path
|
||||
android:pathData="M10.1,8.5L10.1,8.5A1.4,1.4 0,0 1,11.5 9.9L11.5,16.1A1.4,1.4 0,0 1,10.1 17.5L10.1,17.5A1.4,1.4 0,0 1,8.7 16.1L8.7,9.9A1.4,1.4 0,0 1,10.1 8.5z"
|
||||
android:strokeWidth="1"
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="#00000000"/>
|
||||
<path
|
||||
android:pathData="M15.9,8.5L15.9,8.5A1.4,1.4 0,0 1,17.3 9.9L17.3,16.1A1.4,1.4 0,0 1,15.9 17.5L15.9,17.5A1.4,1.4 0,0 1,14.5 16.1L14.5,9.9A1.4,1.4 0,0 1,15.9 8.5z"
|
||||
android:strokeWidth="1"
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="#00000000"/>
|
||||
</vector>
|
@@ -1,19 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="26dp"
|
||||
android:height="26dp"
|
||||
android:viewportWidth="26"
|
||||
android:viewportHeight="26">
|
||||
<path
|
||||
android:pathData="M13,13m-11,0a11,11 0,1 1,22 0a11,11 0,1 1,-22 0"
|
||||
android:strokeWidth="1"
|
||||
android:fillColor="#CBFF00"
|
||||
android:fillAlpha="0.5"
|
||||
android:strokeColor="#FFFFFF"
|
||||
android:fillType="evenOdd"/>
|
||||
<path
|
||||
android:pathData="M17.099,14.441L12.044,17.473C11.249,17.951 10.217,17.693 9.739,16.897C9.583,16.636 9.5,16.337 9.5,16.033L9.5,9.967C9.5,9.039 10.252,8.287 11.18,8.287C11.484,8.287 11.783,8.37 12.044,8.527L17.099,11.559C17.895,12.037 18.153,13.069 17.675,13.864C17.533,14.101 17.335,14.299 17.099,14.441Z"
|
||||
android:strokeWidth="1"
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="#00000000"/>
|
||||
</vector>
|
@@ -6,7 +6,7 @@
|
||||
<path
|
||||
android:pathData="M2,2.5C2.552,2.5 3,2.948 3,3.5L3,8.5C3,9.052 2.552,9.5 2,9.5C1.448,9.5 1,9.052 1,8.5L1,3.5C1,2.948 1.448,2.5 2,2.5ZM6,0.5C6.552,0.5 7,0.948 7,1.5L7,10.5C7,11.052 6.552,11.5 6,11.5C5.448,11.5 5,11.052 5,10.5L5,1.5C5,0.948 5.448,0.5 6,0.5ZM10,2.5C10.552,2.5 11,2.948 11,3.5L11,8.5C11,9.052 10.552,9.5 10,9.5C9.448,9.5 9,9.052 9,8.5L9,3.5C9,2.948 9.448,2.5 10,2.5Z"
|
||||
android:strokeWidth="1"
|
||||
android:fillColor="#141414"
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="#00000000"/>
|
||||
android:strokeColor="#FFFFFF"/>
|
||||
</vector>
|
||||
|
@@ -135,7 +135,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/me_in_live"
|
||||
android:textColor="@color/color_1E1E1F"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_11" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -195,13 +195,6 @@
|
||||
android:textSize="@dimen/sp_12"
|
||||
tools:text="ID:7958626" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/iv_copy"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:src="@drawable/ic_user_info_copy" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_good_number"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -341,54 +334,6 @@
|
||||
tools:visibility="visible" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- <androidx.recyclerview.widget.RecyclerView-->
|
||||
<!-- android:id="@+id/mLabelRecyclerView"-->
|
||||
<!-- android:layout_width="0dp"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginTop="@dimen/dp_12"-->
|
||||
<!-- android:orientation="horizontal"-->
|
||||
<!-- app:layout_constraintEnd_toStartOf="@+id/ivTagArrow"-->
|
||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
||||
<!-- app:layout_constraintTop_toBottomOf="@id/ll_level" />-->
|
||||
|
||||
<!-- <androidx.appcompat.widget.AppCompatImageView-->
|
||||
<!-- android:id="@+id/ivTagArrow"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginTop="@dimen/dp_12"-->
|
||||
<!-- android:layout_marginEnd="@dimen/dp_12"-->
|
||||
<!-- android:src="@drawable/ic_tag_arrow"-->
|
||||
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
||||
<!-- app:layout_constraintTop_toBottomOf="@id/ll_level" />-->
|
||||
|
||||
<!-- <androidx.constraintlayout.widget.Group-->
|
||||
<!-- android:id="@+id/groupLabel"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:visibility="gone"-->
|
||||
<!-- app:constraint_referenced_ids="mLabelRecyclerView,ivTagArrow" />-->
|
||||
|
||||
<!-- <com.coorchice.library.SuperTextView-->
|
||||
<!-- android:id="@+id/tvEditLabel"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginTop="@dimen/dp_12"-->
|
||||
<!-- android:drawableStart="@drawable/ic_user_info_label_edit"-->
|
||||
<!-- android:drawablePadding="@dimen/dp_10"-->
|
||||
<!-- android:gravity="center"-->
|
||||
<!-- android:paddingStart="@dimen/dp_9"-->
|
||||
<!-- android:paddingTop="@dimen/dp_3"-->
|
||||
<!-- android:paddingEnd="@dimen/dp_15"-->
|
||||
<!-- android:paddingBottom="@dimen/dp_3"-->
|
||||
<!-- android:text="@string/edit_your_user_label"-->
|
||||
<!-- android:textColor="@color/color_00C4EA"-->
|
||||
<!-- android:textSize="@dimen/sp_10"-->
|
||||
<!-- android:visibility="gone"-->
|
||||
<!-- app:corner="@dimen/dp_10"-->
|
||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
||||
<!-- app:layout_constraintTop_toBottomOf="@+id/mLabelRecyclerView"-->
|
||||
<!-- app:solid="@color/color_E1FAFF" />-->
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
|
@@ -14,10 +14,10 @@
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginEnd="@dimen/dp_8"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/user_info_bg_follow"
|
||||
android:background="@drawable/base_shape_theme_23dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/attention"
|
||||
android:textColor="@color/color_1E1E1F"
|
||||
android:textColor="@color/color_FFFFFF"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
<com.chwl.library.widget.DrawableCenterTextView
|
||||
@@ -27,7 +27,7 @@
|
||||
android:layout_marginStart="@dimen/dp_8"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/base_shape_theme_24dp"
|
||||
android:background="@drawable/base_shape_border_theme_23dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/send_msg"
|
||||
android:textColor="@color/color_1E1E1F"
|
||||
|
Reference in New Issue
Block a user