UI细节调整
This commit is contained in:
parent
4a2028db29
commit
1019bac085
@ -8,7 +8,7 @@
|
|||||||
android:layout_marginStart="16dp"
|
android:layout_marginStart="16dp"
|
||||||
android:layout_marginTop="9dp"
|
android:layout_marginTop="9dp"
|
||||||
android:layout_marginEnd="16dp"
|
android:layout_marginEnd="16dp"
|
||||||
android:background="@mipmap/background_home_sud_game_list">
|
android:background="@drawable/bg_f2edd7_10">
|
||||||
|
|
||||||
<com.makeramen.roundedimageview.RoundedImageView
|
<com.makeramen.roundedimageview.RoundedImageView
|
||||||
android:id="@+id/avatar"
|
android:id="@+id/avatar"
|
||||||
|
@ -149,6 +149,11 @@ public class MainHomeComAdapter2 extends RefreshAdapter<ActiveBean> {
|
|||||||
if (bean == null) {
|
if (bean == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(position==0){
|
||||||
|
topLine.setVisibility(View.GONE);
|
||||||
|
}else {
|
||||||
|
topLine.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
ImgLoader.display(mContext, bean.getUser_avatar(), author);
|
ImgLoader.display(mContext, bean.getUser_avatar(), author);
|
||||||
name.setText(bean.getUser_name());
|
name.setText(bean.getUser_name());
|
||||||
time.setText(bean.getCreate_time());
|
time.setText(bean.getCreate_time());
|
||||||
|
7
main/src/main/res/drawable/bg_transform2white.xml
Normal file
7
main/src/main/res/drawable/bg_transform2white.xml
Normal 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>
|
@ -51,7 +51,7 @@
|
|||||||
app:tbn_icon_size="25dp"
|
app:tbn_icon_size="25dp"
|
||||||
app:tbn_text_color_checked="@color/colorMainTab"
|
app:tbn_text_color_checked="@color/colorMainTab"
|
||||||
app:tbn_text_color_unchecked="@color/gray1"
|
app:tbn_text_color_unchecked="@color/gray1"
|
||||||
app:tbn_text_size="11sp"
|
app:tbn_text_size="9sp"
|
||||||
app:tbn_tip="@string/main_home" />
|
app:tbn_tip="@string/main_home" />
|
||||||
|
|
||||||
<com.yunbao.common.custom.TabButton
|
<com.yunbao.common.custom.TabButton
|
||||||
@ -62,7 +62,7 @@
|
|||||||
app:tbn_icon_size="25dp"
|
app:tbn_icon_size="25dp"
|
||||||
app:tbn_text_color_checked="@color/colorMainTab"
|
app:tbn_text_color_checked="@color/colorMainTab"
|
||||||
app:tbn_text_color_unchecked="@color/gray1"
|
app:tbn_text_color_unchecked="@color/gray1"
|
||||||
app:tbn_text_size="11sp"
|
app:tbn_text_size="9sp"
|
||||||
app:tbn_tip="@string/live" />
|
app:tbn_tip="@string/live" />
|
||||||
|
|
||||||
<com.yunbao.common.custom.TabButton
|
<com.yunbao.common.custom.TabButton
|
||||||
@ -73,7 +73,7 @@
|
|||||||
app:tbn_icon_size="25dp"
|
app:tbn_icon_size="25dp"
|
||||||
app:tbn_text_color_checked="@color/colorMainTab"
|
app:tbn_text_color_checked="@color/colorMainTab"
|
||||||
app:tbn_text_color_unchecked="@color/gray1"
|
app:tbn_text_color_unchecked="@color/gray1"
|
||||||
app:tbn_text_size="11sp"
|
app:tbn_text_size="9sp"
|
||||||
app:tbn_tip="@string/game" />
|
app:tbn_tip="@string/game" />
|
||||||
|
|
||||||
<com.yunbao.common.custom.TabButton
|
<com.yunbao.common.custom.TabButton
|
||||||
@ -84,7 +84,7 @@
|
|||||||
app:tbn_icon_size="25dp"
|
app:tbn_icon_size="25dp"
|
||||||
app:tbn_text_color_checked="@color/colorMainTab"
|
app:tbn_text_color_checked="@color/colorMainTab"
|
||||||
app:tbn_text_color_unchecked="@color/gray1"
|
app:tbn_text_color_unchecked="@color/gray1"
|
||||||
app:tbn_text_size="11sp"
|
app:tbn_text_size="9sp"
|
||||||
app:tbn_tip="@string/chat" />
|
app:tbn_tip="@string/chat" />
|
||||||
|
|
||||||
<com.yunbao.common.custom.TabButton
|
<com.yunbao.common.custom.TabButton
|
||||||
@ -95,7 +95,7 @@
|
|||||||
app:tbn_icon_size="25dp"
|
app:tbn_icon_size="25dp"
|
||||||
app:tbn_text_color_checked="@color/colorMainTab"
|
app:tbn_text_color_checked="@color/colorMainTab"
|
||||||
app:tbn_text_color_unchecked="@color/gray1"
|
app:tbn_text_color_unchecked="@color/gray1"
|
||||||
app:tbn_text_size="11sp"
|
app:tbn_text_size="9sp"
|
||||||
app:tbn_tip="@string/main_me" />
|
app:tbn_tip="@string/main_me" />
|
||||||
|
|
||||||
</com.yunbao.common.custom.TabButtonGroup>
|
</com.yunbao.common.custom.TabButtonGroup>
|
||||||
|
@ -4,9 +4,16 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@mipmap/bg_yola_index"
|
|
||||||
android:orientation="vertical">
|
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
|
<ImageView
|
||||||
android:id="@+id/img_trophy"
|
android:id="@+id/img_trophy"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -13,9 +13,9 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="44dp"
|
android:layout_height="44dp"
|
||||||
android:layout_marginTop="28dp"
|
android:layout_marginTop="28dp"
|
||||||
android:background="@android:color/transparent"
|
|
||||||
android:fadingEdge="none"
|
android:fadingEdge="none"
|
||||||
app:elevation="0dp"
|
app:elevation="0dp"
|
||||||
|
android:background="@drawable/bg_transform2white"
|
||||||
app:layout_behavior="com.yunbao.common.custom.FixAppBarLayoutBehavior">
|
app:layout_behavior="com.yunbao.common.custom.FixAppBarLayoutBehavior">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
@ -77,7 +77,7 @@
|
|||||||
android:id="@+id/viewPager"
|
android:id="@+id/viewPager"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@color/white"
|
|
||||||
android:overScrollMode="never"
|
android:overScrollMode="never"
|
||||||
|
android:background="@color/white"
|
||||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -19,8 +19,10 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="4dp"
|
android:layout_height="4dp"
|
||||||
android:background="#F3F4F9" />
|
android:background="#F3F4F9" />
|
||||||
|
|
||||||
<com.yunbao.common.custom.CommonRefreshView
|
<com.yunbao.common.custom.CommonRefreshView
|
||||||
android:id="@+id/refreshView"
|
android:id="@+id/refreshView"
|
||||||
|
android:background="@color/white"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginLeft="4dp"
|
android:layout_marginLeft="4dp"
|
||||||
@ -39,12 +41,12 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:alpha="0"
|
android:alpha="0"
|
||||||
|
android:visibility="gone"
|
||||||
android:background="#80000000" />
|
android:background="#80000000" />
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@color/white"
|
|
||||||
android:overScrollMode="never"
|
android:overScrollMode="never"
|
||||||
android:paddingBottom="10dp" />
|
android:paddingBottom="10dp" />
|
||||||
|
|
||||||
|
@ -4,10 +4,16 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:src="@mipmap/bg_yola_index"
|
|
||||||
android:orientation="vertical">
|
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
|
<TextView
|
||||||
android:id="@+id/meTitleTv"
|
android:id="@+id/meTitleTv"
|
||||||
|
@ -292,8 +292,9 @@
|
|||||||
<View
|
<View
|
||||||
android:id="@+id/vipBgView"
|
android:id="@+id/vipBgView"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="72dp"
|
android:layout_height="0dp"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
|
app:layout_constraintDimensionRatio="2.333"
|
||||||
android:background="@drawable/bg_me_data"
|
android:background="@drawable/bg_me_data"
|
||||||
app:layout_constraintStart_toStartOf="@+id/bgView"
|
app:layout_constraintStart_toStartOf="@+id/bgView"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/bgView"
|
app:layout_constraintTop_toBottomOf="@+id/bgView"
|
||||||
@ -336,7 +337,7 @@
|
|||||||
android:paddingEnd="2dp"
|
android:paddingEnd="2dp"
|
||||||
android:text="@string/open_noble_text"
|
android:text="@string/open_noble_text"
|
||||||
android:textColor="#777777"
|
android:textColor="#777777"
|
||||||
android:textSize="10sp"
|
android:textSize="9sp"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/vipBgView"
|
app:layout_constraintBottom_toBottomOf="@+id/vipBgView"
|
||||||
app:layout_constraintEnd_toEndOf="@id/vipBgView"
|
app:layout_constraintEnd_toEndOf="@id/vipBgView"
|
||||||
app:layout_constraintStart_toEndOf="@+id/user_noble_ico"
|
app:layout_constraintStart_toEndOf="@+id/user_noble_ico"
|
||||||
@ -346,8 +347,9 @@
|
|||||||
<View
|
<View
|
||||||
android:id="@+id/gudBgView"
|
android:id="@+id/gudBgView"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="72dp"
|
android:layout_height="0dp"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
|
app:layout_constraintDimensionRatio="2.333"
|
||||||
android:background="@drawable/bg_me_data"
|
android:background="@drawable/bg_me_data"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/bgView"
|
app:layout_constraintEnd_toEndOf="@+id/bgView"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/bgView"
|
app:layout_constraintTop_toBottomOf="@+id/bgView"
|
||||||
@ -390,7 +392,7 @@
|
|||||||
android:paddingEnd="2dp"
|
android:paddingEnd="2dp"
|
||||||
android:text="@string/guard_for_your_beloved_one"
|
android:text="@string/guard_for_your_beloved_one"
|
||||||
android:textColor="#777777"
|
android:textColor="#777777"
|
||||||
android:textSize="10sp"
|
android:textSize="9sp"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/gudBgView"
|
app:layout_constraintBottom_toBottomOf="@+id/gudBgView"
|
||||||
app:layout_constraintEnd_toEndOf="@id/gudBgView"
|
app:layout_constraintEnd_toEndOf="@id/gudBgView"
|
||||||
app:layout_constraintStart_toEndOf="@+id/user_guard_ico"
|
app:layout_constraintStart_toEndOf="@+id/user_guard_ico"
|
||||||
|
Loading…
Reference in New Issue
Block a user