layout_ad_control_view.xml 1.77 KB
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <ImageView
            android:id="@+id/back"
            style="@style/adIcon"
            android:src="@drawable/cnvideo_ic_action_arrow_back" />

        <TextView
            android:id="@+id/ad_time"
            style="@style/adText"
            android:layout_alignParentEnd="true"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            tools:text="2s|跳过" />
    </RelativeLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="@dimen/controller_height"
        android:layout_gravity="bottom|end"
        android:gravity="end">

        <ImageView
            android:id="@+id/iv_play"
            style="@style/adIcon"
            android:src="@drawable/cnvideo_selector_play_button" />

        <View
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1" />

        <TextView
            android:id="@+id/ad_detail"
            style="@style/adText"
            tools:text="了解详情>" />

        <ImageView
            android:id="@+id/iv_volume"
            style="@style/adIcon"
            android:src="@drawable/cnvideo_ic_action_volume_off" />

        <ImageView
            android:id="@+id/fullscreen"
            style="@style/adIcon"
            android:src="@drawable/cnvideo_selector_full_screen_button" />
    </LinearLayout>
</FrameLayout>