主播端多人PK 代码补提交
This commit is contained in:
parent
ffcb0e8790
commit
20aa6002f8
5
live/src/main/res/drawable/background_pk_time.xml
Normal file
5
live/src/main/res/drawable/background_pk_time.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<solid android:color="#60000000" />
|
||||||
|
<corners android:radius="7.17dp" />
|
||||||
|
</shape>
|
252
live/src/main/res/layout/view_live_pk_details.xml
Normal file
252
live/src/main/res/layout/view_live_pk_details.xml
Normal file
@ -0,0 +1,252 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
<!--左上-->
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/lin_pk1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/linear_grade1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="5.33dp"
|
||||||
|
android:layout_marginTop="4.67dp"
|
||||||
|
android:background="@drawable/background_pk_time"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/image_grade1"
|
||||||
|
android:layout_width="10.67dp"
|
||||||
|
android:layout_height="10.67dp"
|
||||||
|
android:layout_marginStart="2.67dp"
|
||||||
|
android:layout_marginTop="1.67dp"
|
||||||
|
android:layout_marginEnd="4.33dp"
|
||||||
|
android:layout_marginBottom="1.67dp"
|
||||||
|
android:src="@mipmap/icon_livepk_no1" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_grade1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="6.76dp"
|
||||||
|
android:text="000"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="8sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_pk_name1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="5.33dp"
|
||||||
|
android:layout_marginTop="3.3dp"
|
||||||
|
android:background="@drawable/background_pk_time"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:maxWidth="50dp"
|
||||||
|
android:paddingStart="6dp"
|
||||||
|
android:paddingTop="4.33dp"
|
||||||
|
android:paddingEnd="6dp"
|
||||||
|
android:paddingBottom="4.33dp"
|
||||||
|
android:text="我方"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="8sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
<!--右上-->
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/lin_pk2"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="end"
|
||||||
|
android:gravity="end"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/linear_grade2"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="4.67dp"
|
||||||
|
android:layout_marginEnd="5.33dp"
|
||||||
|
android:background="@drawable/background_pk_time"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/image_grade2"
|
||||||
|
android:layout_width="10.67dp"
|
||||||
|
android:layout_height="10.67dp"
|
||||||
|
android:layout_marginStart="2.67dp"
|
||||||
|
android:layout_marginTop="1.67dp"
|
||||||
|
android:layout_marginEnd="4.33dp"
|
||||||
|
android:layout_marginBottom="1.67dp"
|
||||||
|
android:src="@mipmap/icon_livepk_no2" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_grade2"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="6.76dp"
|
||||||
|
android:text="000"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="8sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_pk_name2"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="3.3dp"
|
||||||
|
android:layout_marginEnd="5.33dp"
|
||||||
|
android:background="@drawable/background_pk_time"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:maxWidth="50dp"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:paddingStart="6dp"
|
||||||
|
android:paddingTop="4.33dp"
|
||||||
|
android:paddingEnd="6dp"
|
||||||
|
android:paddingBottom="4.33dp"
|
||||||
|
android:text="我方"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="8sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
<!--左下-->
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/lin_pk3"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="bottom"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_pk_name3"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="5.33dp"
|
||||||
|
android:layout_marginBottom="3.3dp"
|
||||||
|
android:background="@drawable/background_pk_time"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:maxWidth="50dp"
|
||||||
|
android:paddingStart="6dp"
|
||||||
|
android:paddingTop="4.33dp"
|
||||||
|
android:paddingEnd="6dp"
|
||||||
|
android:paddingBottom="4.33dp"
|
||||||
|
android:text="我方"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="8sp" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/linear_grade3"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="5.33dp"
|
||||||
|
android:layout_marginBottom="4.67dp"
|
||||||
|
android:background="@drawable/background_pk_time"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/image_grade3"
|
||||||
|
android:layout_width="10.67dp"
|
||||||
|
android:layout_height="10.67dp"
|
||||||
|
android:layout_marginStart="2.67dp"
|
||||||
|
android:layout_marginTop="1.67dp"
|
||||||
|
android:layout_marginEnd="4.33dp"
|
||||||
|
android:layout_marginBottom="1.67dp"
|
||||||
|
android:src="@mipmap/icon_livepk_no3" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_grade3"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="6.76dp"
|
||||||
|
android:text="000"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="8sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
<!--右下-->
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/lin_pk4"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="bottom|end"
|
||||||
|
android:gravity="end"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_pk_name4"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="5.33dp"
|
||||||
|
android:layout_marginBottom="3.3dp"
|
||||||
|
android:background="@drawable/background_pk_time"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:maxWidth="50dp"
|
||||||
|
android:paddingStart="6dp"
|
||||||
|
android:paddingTop="4.33dp"
|
||||||
|
android:paddingEnd="6dp"
|
||||||
|
android:paddingBottom="4.33dp"
|
||||||
|
android:text="我方"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="8sp" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/linear_grade4"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="5.33dp"
|
||||||
|
android:layout_marginBottom="4.67dp"
|
||||||
|
android:background="@drawable/background_pk_time"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/image_grade4"
|
||||||
|
android:layout_width="10.67dp"
|
||||||
|
android:layout_height="10.67dp"
|
||||||
|
android:layout_marginStart="2.67dp"
|
||||||
|
android:layout_marginTop="1.67dp"
|
||||||
|
android:layout_marginEnd="4.33dp"
|
||||||
|
android:layout_marginBottom="1.67dp"
|
||||||
|
android:src="@mipmap/icon_livepk_no3" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_grade4"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="6.76dp"
|
||||||
|
android:text="000"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="8sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
<!--PK时间-->
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/time_title"
|
||||||
|
android:layout_width="70dp"
|
||||||
|
android:layout_height="18dp"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:background="@mipmap/live_pk_time_bg"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_time"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/pk_time"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="10sp" />
|
||||||
|
</FrameLayout>
|
||||||
|
</FrameLayout>
|
BIN
live/src/main/res/mipmap-xxxhdpi/icon_livepk_no2.png
Normal file
BIN
live/src/main/res/mipmap-xxxhdpi/icon_livepk_no2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/icon_livepk_no3.png
Normal file
BIN
live/src/main/res/mipmap-xxxhdpi/icon_livepk_no3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/icon_livepk_no4.png
Normal file
BIN
live/src/main/res/mipmap-xxxhdpi/icon_livepk_no4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in New Issue
Block a user