update 随机Pk

This commit is contained in:
2022-11-24 15:34:51 +08:00
parent 9b17c1225a
commit e0b69be2d4
8 changed files with 253 additions and 49 deletions

View File

@@ -2,13 +2,13 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:background="@drawable/bg_live_tota2"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:background="@drawable/bg_live_tota">
<LinearLayout
android:id="@+id/random_menu_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
android:visibility="visible"
app:layout_constraintBottom_toBottomOf="parent"
@@ -19,8 +19,8 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="45dp"
android:gravity="center"
android:layout_marginBottom="5dp"
android:gravity="center"
android:orientation="horizontal">
<ImageView
@@ -49,9 +49,9 @@
android:id="@+id/menu_tab"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:tabIndicator="@drawable/random_pk_shape_tab_indicator"
app:tabIndicatorColor="#F6F7FB"
app:tabIndicatorFullWidth="false"
app:tabIndicator="@drawable/random_pk_shape_tab_indicator"
app:tabMaxWidth="100dp"
app:tabMode="scrollable"
app:tabSelectedTextColor="#F6F7FB"
@@ -89,17 +89,26 @@
</LinearLayout>
<include
android:visibility="visible"
layout="@layout/item_random_pk_info"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:visibility="visible" />
<include
layout="@layout/item_random_pk_rv_search"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:visibility="gone" />
<com.yunbao.common.custom.CommonRefreshView
android:id="@+id/random_container_view"
android:layout_width="match_parent"
android:visibility="gone"
android:layout_height="216dp"
android:layout_marginTop="10dp"
android:layout_weight="1" >
android:layout_weight="1"
android:visibility="gone">
</com.yunbao.common.custom.CommonRefreshView>
</LinearLayout>

View File

@@ -1,15 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:visibility="visible"
android:id="@+id/layout_random_pk_info"
android:layout_height="wrap_content">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="visible">
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@drawable/background_7792d0"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
@@ -104,9 +106,9 @@
android:id="@+id/random_pk_btn_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
android:textColor="#FFFFFF"
android:textSize="10sp" />
android:textSize="10sp"
android:visibility="gone" />
</LinearLayout>
<TextView
@@ -115,21 +117,20 @@
android:layout_height="match_parent"
android:gravity="center"
android:text="@string/random_pk_info_switch"
android:textColor="#9A9A9A"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/live_random_pk_switch"
app:layout_constraintTop_toTopOf="parent" />
<androidx.appcompat.widget.SwitchCompat
<ImageView
android:id="@+id/live_random_pk_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bg_live_random_pk_info_switch"
android:checked="true"
android:thumb="@drawable/bg_live_random_pk_info_switch_thumb"
android:layout_width="46.67dp"
android:layout_height="23.33dp"
android:src="@mipmap/special_icon_off"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_goneMarginEnd="10dp"
app:track="@drawable/bg_live_random_pk_info_switch_track" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -2,7 +2,9 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="36dp"
android:layout_height="52dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@drawable/bg_item_random_pk_type_1"
android:gravity="center"
android:orientation="horizontal">
@@ -20,7 +22,7 @@
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1.5"
android:layout_weight="1.4"
android:orientation="horizontal">
<com.makeramen.roundedimageview.RoundedImageView

View File

@@ -2,6 +2,8 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="36dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@drawable/bg_item_random_pk_type_1"
android:gravity="center"
android:orientation="horizontal">
@@ -17,7 +19,7 @@
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_weight="1.2"
android:text="头像&amp;昵称"
android:textColor="#B3FFFFFF" />

View File

@@ -2,32 +2,36 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:visibility="visible"
android:layout_height="32dp"
android:id="@+id/random_pk_search_layout"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@drawable/bg_random_pk_rv_search"
android:layout_height="32dp">
android:visibility="visible">
<ImageView
android:id="@+id/search_icon"
android:layout_width="0dp"
android:layout_weight="0.1"
android:layout_height="18dp"
android:layout_marginStart="10dp"
android:layout_gravity="center"
android:layout_marginStart="10dp"
android:layout_weight="0.1"
app:srcCompat="@mipmap/ic_random_pk_search" />
<EditText
android:id="@+id/search_edit"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_marginStart="5dp"
android:layout_gravity="center"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@null"
android:ems="10"
android:inputType="textPersonName"
android:hint="@string/random_pk_search_hint"
android:textColor="#FFFFFF"
android:background="@null" />
android:textColorHint="#80FFFFFF"
android:inputType="textPersonName"
android:textColor="#FFFFFF" />
<ImageView
android:id="@+id/search_clear"