update 随机PK

This commit is contained in:
zlzw 2022-11-23 16:07:57 +08:00
parent 4a637d0a69
commit 8a03b194b2
3 changed files with 65 additions and 17 deletions

View File

@ -2,25 +2,42 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!--开关按钮关闭时的导轨样式-->
<item android:state_checked="false">
<shape>
<size android:height="25dp" android:width="25dp"/>
<corners android:radius="20dp"/>
<solid android:color="#FFFFFF"/>
</shape>
<layer-list>
<item android:bottom="-1px" android:top="-1px" android:left="-1px" android:right="-1px">
<shape android:shape="oval">
<size android:width="24dp" android:height="24dp" />
<solid android:color="#33EEEEEE" />
</shape>
</item>
<item>
<shape>
<size android:height="25dp" android:width="25dp"/>
<corners android:radius="20dp"/>
<solid android:color="#FFFFFF"/>
</shape>
</item>
</layer-list>
</item>
<item android:state_checked="true">
<shape>
<size android:height="25dp" android:width="25dp"/>
<corners android:radius="20dp"/>
<solid android:color="#FFFFFF"/>
<padding
android:bottom="2dp"
android:left="2dp"
android:right="2dp"
android:top="2dp" />
<layer-list>
<item android:bottom="-1px" android:top="-1px" android:left="-1px" android:right="-1px">
<shape android:shape="oval">
<size android:width="24dp" android:height="24dp" />
<solid android:color="#33EEEEEE" />
</shape>
</item>
<item>
<shape>
<size android:height="25dp" android:width="25dp"/>
<corners android:radius="20dp"/>
<solid android:color="#FFFFFF"/>
</shape>
</item>
</layer-list>
</shape>
</item>
</selector>

View File

@ -85,11 +85,13 @@
</LinearLayout>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
<com.yunbao.common.custom.CommonRefreshView
android:id="@+id/random_container_view"
android:layout_width="match_parent"
android:layout_height="216dp"
android:layout_marginTop="10dp"
android:layout_weight="1" />
android:layout_weight="1" >
</com.yunbao.common.custom.CommonRefreshView>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -86,10 +86,39 @@
android:text="@string/random_pk_info_btn_start"
android:textColor="#FFFFFF"
android:textSize="16sp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:layout_width="188dp"
android:layout_height="42dp"
android:layout_marginStart="10dp"
android:background="@drawable/bg_live_random_pk_info_btn"
android:gravity="center"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/random_pk_btn_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/random_pk_info_btn_start"
android:textColor="#FFFFFF"
android:textSize="16sp" />
<TextView
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" />
</LinearLayout>
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"