166 lines
6.3 KiB
XML
166 lines
6.3 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<RelativeLayout 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="match_parent"
|
||
|
android:clickable="true">
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/avatar_1"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:scaleType="centerCrop" />
|
||
|
|
||
|
<RelativeLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:background="#b3000000">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/text_1"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_centerHorizontal="true"
|
||
|
android:layout_marginTop="80dp"
|
||
|
android:text="@string/live_end"
|
||
|
android:textColor="@color/global"
|
||
|
android:textSize="24sp" />
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/group"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="180dp"
|
||
|
android:layout_below="@id/text_1"
|
||
|
android:layout_marginLeft="20dp"
|
||
|
android:layout_marginTop="100dp"
|
||
|
android:layout_marginRight="20dp"
|
||
|
android:background="@drawable/bg_live_end"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/name"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_horizontal"
|
||
|
android:layout_marginTop="70dp"
|
||
|
android:textColor="@color/white"
|
||
|
android:textSize="18sp"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
<View
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="1dp"
|
||
|
android:layout_marginTop="15dp"
|
||
|
android:background="#33ffffff" />
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_weight="1"
|
||
|
android:gravity="center_horizontal"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/duration"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="5dp"
|
||
|
android:gravity="center_horizontal"
|
||
|
android:textColor="@color/white"
|
||
|
android:textSize="20sp" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="7dp"
|
||
|
android:text="@string/live_duration"
|
||
|
android:textColor="@color/gray3" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_weight="1"
|
||
|
android:gravity="center_horizontal"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/votes"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="5dp"
|
||
|
android:gravity="center_horizontal"
|
||
|
android:textColor="@color/white"
|
||
|
android:textSize="20sp" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/votes_name"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="7dp"
|
||
|
android:textColor="@color/gray3" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_weight="1"
|
||
|
android:gravity="center_horizontal"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/watch_num"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="5dp"
|
||
|
android:gravity="center_horizontal"
|
||
|
android:textColor="@color/white"
|
||
|
android:textSize="20sp" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="7dp"
|
||
|
android:text="@string/live_watch_num"
|
||
|
android:textColor="@color/gray3" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<com.makeramen.roundedimageview.RoundedImageView
|
||
|
android:id="@+id/avatar_2"
|
||
|
android:layout_width="100dp"
|
||
|
android:layout_height="100dp"
|
||
|
android:layout_below="@id/text_1"
|
||
|
android:layout_centerHorizontal="true"
|
||
|
android:layout_marginTop="50dp"
|
||
|
android:scaleType="centerCrop"
|
||
|
app:riv_oval="true" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/btn_back"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="48dp"
|
||
|
android:layout_below="@id/group"
|
||
|
android:layout_marginLeft="50dp"
|
||
|
android:layout_marginTop="50dp"
|
||
|
android:layout_marginRight="50dp"
|
||
|
android:background="@drawable/login_btn"
|
||
|
android:gravity="center"
|
||
|
android:text="@string/live_back"
|
||
|
android:textColor="@color/white"
|
||
|
android:textSize="16sp" />
|
||
|
|
||
|
|
||
|
</RelativeLayout>
|
||
|
|
||
|
</RelativeLayout>
|