195 lines
6.6 KiB
XML
195 lines
6.6 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:id="@+id/rl_root"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.yunbao.live.custom.FrameImageView
|
|
android:id="@+id/frame_img"
|
|
android:layout_width="210dp"
|
|
android:layout_height="120dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:scaleType="fitXY"
|
|
android:translationY="-54dp"
|
|
app:fiv_ratio="0.213" />
|
|
|
|
<com.yunbao.live.custom.PkProgressBar
|
|
android:id="@+id/progressbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="20dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:visibility="visible"
|
|
app:ppb_left_color="@color/transparent"
|
|
app:ppb_left_color_stroke="@color/transparent"
|
|
app:ppb_minWidth="72dp"
|
|
app:ppb_rate="0.5"
|
|
app:ppb_right_color="@color/transparent"
|
|
app:ppb_right_color_stroke="@color/transparent" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/bottom"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="20dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/left"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/live_pk_red"
|
|
android:gravity="center_vertical"
|
|
android:paddingLeft="6dp"
|
|
android:textColor="@color/white"
|
|
android:textSize="12sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/right"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/live_pk_blue"
|
|
android:gravity="center_vertical|right"
|
|
android:paddingRight="6dp"
|
|
android:textColor="@color/white"
|
|
android:textSize="12sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="20dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/left2"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@color/transparent"
|
|
android:textSize="12sp" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="12dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<ImageView
|
|
android:id="@+id/frame_img_pk"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp" />
|
|
</RelativeLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/right2"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@color/transparent"
|
|
android:textSize="12sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:orientation="horizontal"
|
|
android:visibility="visible">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="20dp"
|
|
android:background="@mipmap/bg_pk_black_bg">
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="45dp"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
|
|
<ImageView
|
|
android:id="@+id/img_pk_show_l"
|
|
android:layout_width="90dp"
|
|
android:layout_height="90dp"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginBottom="6dp"
|
|
android:background="@mipmap/icon_pk_win"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="right">
|
|
|
|
<ImageView
|
|
android:id="@+id/img_pk_show_r"
|
|
android:layout_width="90dp"
|
|
android:layout_height="90dp"
|
|
android:layout_marginRight="12dp"
|
|
android:layout_marginBottom="6dp"
|
|
android:background="@mipmap/icon_pk_lose"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/time"
|
|
android:layout_width="72dp"
|
|
android:layout_height="20dp"
|
|
android:layout_above="@id/bottom"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginBottom="8dp"
|
|
android:background="@mipmap/bg_time_box"
|
|
android:gravity="center"
|
|
android:paddingLeft="3dp"
|
|
android:paddingRight="3dp"
|
|
android:textColor="@color/white"
|
|
android:textSize="11sp"
|
|
android:visibility="invisible" />
|
|
|
|
<ImageView
|
|
android:id="@+id/result"
|
|
android:layout_width="75dp"
|
|
android:layout_height="50dp"
|
|
android:layout_centerInParent="true" />
|
|
|
|
<com.yunbao.live.custom.ProgressTextView
|
|
android:id="@+id/pk_wait_progress"
|
|
android:layout_width="70dp"
|
|
android:layout_height="0dp"
|
|
android:layout_centerInParent="true"
|
|
android:gravity="center"
|
|
android:text="10"
|
|
android:textColor="@color/white"
|
|
android:textSize="20sp"
|
|
android:visibility="invisible"
|
|
app:ptv_bg_color="@color/pk_blue"
|
|
app:ptv_fg_color="@color/pk_red"
|
|
app:ptv_progress="10"
|
|
app:ptv_stroke_width="6dp" />
|
|
|
|
</RelativeLayout> |