UI细节调整

This commit is contained in:
ningwenqiang 2024-11-02 13:41:20 +08:00
parent 4a2028db29
commit 1019bac085
9 changed files with 44 additions and 15 deletions

View File

@ -8,7 +8,7 @@
android:layout_marginStart="16dp"
android:layout_marginTop="9dp"
android:layout_marginEnd="16dp"
android:background="@mipmap/background_home_sud_game_list">
android:background="@drawable/bg_f2edd7_10">
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/avatar"

View File

@ -149,6 +149,11 @@ public class MainHomeComAdapter2 extends RefreshAdapter<ActiveBean> {
if (bean == null) {
return;
}
if(position==0){
topLine.setVisibility(View.GONE);
}else {
topLine.setVisibility(View.VISIBLE);
}
ImgLoader.display(mContext, bean.getUser_avatar(), author);
name.setText(bean.getUser_name());
time.setText(bean.getCreate_time());

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="@android:color/transparent"
android:endColor="@android:color/white"
android:angle="270" />
</shape>

View File

@ -51,7 +51,7 @@
app:tbn_icon_size="25dp"
app:tbn_text_color_checked="@color/colorMainTab"
app:tbn_text_color_unchecked="@color/gray1"
app:tbn_text_size="11sp"
app:tbn_text_size="9sp"
app:tbn_tip="@string/main_home" />
<com.yunbao.common.custom.TabButton
@ -62,7 +62,7 @@
app:tbn_icon_size="25dp"
app:tbn_text_color_checked="@color/colorMainTab"
app:tbn_text_color_unchecked="@color/gray1"
app:tbn_text_size="11sp"
app:tbn_text_size="9sp"
app:tbn_tip="@string/live" />
<com.yunbao.common.custom.TabButton
@ -73,7 +73,7 @@
app:tbn_icon_size="25dp"
app:tbn_text_color_checked="@color/colorMainTab"
app:tbn_text_color_unchecked="@color/gray1"
app:tbn_text_size="11sp"
app:tbn_text_size="9sp"
app:tbn_tip="@string/game" />
<com.yunbao.common.custom.TabButton
@ -84,7 +84,7 @@
app:tbn_icon_size="25dp"
app:tbn_text_color_checked="@color/colorMainTab"
app:tbn_text_color_unchecked="@color/gray1"
app:tbn_text_size="11sp"
app:tbn_text_size="9sp"
app:tbn_tip="@string/chat" />
<com.yunbao.common.custom.TabButton
@ -95,7 +95,7 @@
app:tbn_icon_size="25dp"
app:tbn_text_color_checked="@color/colorMainTab"
app:tbn_text_color_unchecked="@color/gray1"
app:tbn_text_size="11sp"
app:tbn_text_size="9sp"
app:tbn_tip="@string/main_me" />
</com.yunbao.common.custom.TabButtonGroup>

View File

@ -4,9 +4,16 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@mipmap/bg_yola_index"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:background="@mipmap/bg_yola_index"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintDimensionRatio="1.512"
android:layout_height="0dp"/>
<ImageView
android:id="@+id/img_trophy"
android:layout_width="wrap_content"

View File

@ -13,9 +13,9 @@
android:layout_width="match_parent"
android:layout_height="44dp"
android:layout_marginTop="28dp"
android:background="@android:color/transparent"
android:fadingEdge="none"
app:elevation="0dp"
android:background="@drawable/bg_transform2white"
app:layout_behavior="com.yunbao.common.custom.FixAppBarLayoutBehavior">
<androidx.constraintlayout.widget.ConstraintLayout
@ -77,7 +77,7 @@
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:overScrollMode="never"
android:background="@color/white"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</LinearLayout>

View File

@ -19,8 +19,10 @@
android:layout_width="match_parent"
android:layout_height="4dp"
android:background="#F3F4F9" />
<com.yunbao.common.custom.CommonRefreshView
android:id="@+id/refreshView"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="4dp"
@ -39,12 +41,12 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:alpha="0"
android:visibility="gone"
android:background="#80000000" />
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:overScrollMode="never"
android:paddingBottom="10dp" />

View File

@ -4,10 +4,16 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@mipmap/bg_yola_index"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:background="@mipmap/bg_yola_index"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintDimensionRatio="1.512"
android:layout_height="0dp"/>
<TextView
android:id="@+id/meTitleTv"

View File

@ -292,8 +292,9 @@
<View
android:id="@+id/vipBgView"
android:layout_width="0dp"
android:layout_height="72dp"
android:layout_height="0dp"
android:layout_marginTop="8dp"
app:layout_constraintDimensionRatio="2.333"
android:background="@drawable/bg_me_data"
app:layout_constraintStart_toStartOf="@+id/bgView"
app:layout_constraintTop_toBottomOf="@+id/bgView"
@ -336,7 +337,7 @@
android:paddingEnd="2dp"
android:text="@string/open_noble_text"
android:textColor="#777777"
android:textSize="10sp"
android:textSize="9sp"
app:layout_constraintBottom_toBottomOf="@+id/vipBgView"
app:layout_constraintEnd_toEndOf="@id/vipBgView"
app:layout_constraintStart_toEndOf="@+id/user_noble_ico"
@ -346,8 +347,9 @@
<View
android:id="@+id/gudBgView"
android:layout_width="0dp"
android:layout_height="72dp"
android:layout_height="0dp"
android:layout_marginTop="8dp"
app:layout_constraintDimensionRatio="2.333"
android:background="@drawable/bg_me_data"
app:layout_constraintEnd_toEndOf="@+id/bgView"
app:layout_constraintTop_toBottomOf="@+id/bgView"
@ -390,7 +392,7 @@
android:paddingEnd="2dp"
android:text="@string/guard_for_your_beloved_one"
android:textColor="#777777"
android:textSize="10sp"
android:textSize="9sp"
app:layout_constraintBottom_toBottomOf="@+id/gudBgView"
app:layout_constraintEnd_toEndOf="@id/gudBgView"
app:layout_constraintStart_toEndOf="@+id/user_guard_ico"