layout_liveshow_detailinfo.xml 9.53 KB
<?xml version="1.0" encoding="utf-8"?>
<ScrollView 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"
    android:fitsSystemWindows="true">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="12dp"
            android:layout_marginTop="18dp"
            android:paddingLeft="10dp"
            android:paddingRight="10dp">

            <TextView
                android:id="@+id/liveshowinfo_tv_title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentLeft="true"
                android:layout_centerVertical="true"
                android:textColor="#333"
                android:textSize="16sp"
                tools:text="百老汇纪念歌剧《JERSEY BOYS》" />

            <TextView
                android:id="@+id/liveshowinfo_tv_tag"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:background="@drawable/rectangle_ff584b_fill"
                android:gravity="center"
                android:paddingBottom="1.8dp"
                android:paddingLeft="4dp"
                android:paddingRight="4dp"
                android:paddingTop="1.8dp"
                android:textColor="#fff"
                android:textSize="9sp"
                tools:text="话剧" />

        </RelativeLayout>

        <TextView
            android:id="@+id/start_time"
            android:textColor="#333"
            android:layout_marginBottom="8dp"
            android:layout_marginLeft="10dp"
            android:text="直播开始时间"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>

        <TextView
            android:id="@+id/liveshowinfo_tv_des"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ellipsize="end"
            android:lineSpacingExtra="2dp"
            android:lineSpacingMultiplier="1.2"
            android:maxLines="3"
            android:paddingLeft="10dp"
            android:paddingRight="10dp"
            android:textColor="#b8b7b7"
            android:textSize="13sp"
            tools:text="百老汇大道(Broadway)为纽约市重要的南北向道路,南起巴特里公园(Battery Park),由南向北纵贯曼哈顿岛。由于此路两旁分布着为数众多的剧院,是美国戏剧和音乐剧的重要发扬地,“百老汇”因此成为了音乐剧的代名词。" />

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingBottom="15dp"
            android:paddingLeft="10dp"
            android:paddingRight="8dp">

            <ImageView
                android:id="@+id/liveshowinfo_img_more"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentLeft="true"
                android:layout_marginTop="22dp"
                android:src="@mipmap/icon_expanded" />

            <ImageView
                android:id="@+id/liveshowinfo_img_share"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_marginTop="19dp"
                android:src="@mipmap/order_share_icon" />

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/liveshowinfo_layout_timer_root"
            android:layout_width="match_parent"
            android:layout_height="72dp"
            android:paddingLeft="10dp"
            android:visibility="gone">

            <View
                android:id="@+id/liveshowinfo_timer_topcut"
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_alignParentTop="true"
                android:background="@color/color_cutline_ececec" />

            <FrameLayout
                android:id="@+id/liveshowinfo_layout_timer"
                android:layout_width="120dp"
                android:layout_height="wrap_content"
                android:layout_alignParentLeft="true"
                android:layout_centerVertical="true">

            </FrameLayout>

            <TextView
                android:id="@+id/liveshowinfo_tv_price"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="12dp"
                android:textColor="#ff6633"
                android:textSize="17sp"
                tools:text="¥ 22" />

            <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentTop="true"
                android:layout_alignRight="@id/liveshowinfo_tv_price"
                android:src="@mipmap/icon_coupon" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:layout_toLeftOf="@id/liveshowinfo_tv_price"
                android:layout_toRightOf="@id/liveshowinfo_layout_timer"
                android:textColor="#bdbdbd"
                android:textSize="11sp"
                tools:text="17/02/23 09:00 同步直播" />

        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/liveshowinfo_layout_theater"
            android:layout_width="match_parent"
            android:layout_height="55dp"
            android:paddingLeft="10dp">

            <View
                android:id="@+id/liveshow_threate_cut"
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_alignParentTop="true"
                android:background="@color/color_cutline_ececec" />

            <ImageView
                android:id="@+id/liveshowinfo_img_theater"
                android:layout_width="24dp"
                android:layout_height="24dp"
                android:layout_alignParentLeft="true"
                android:layout_centerVertical="true"
                tools:background="@mipmap/icon_apklogo" />

            <TextView
                android:id="@+id/liveshowinfo_tv_theater_title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:layout_marginLeft="9dp"
                android:layout_toRightOf="@id/liveshowinfo_img_theater"
                android:textColor="#666"
                android:textSize="12sp"
                tools:text="Board Way Theater" />

            <ImageView
                android:id="@+id/liveshowinfo_theater_img_arrow"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:src="@mipmap/icon_theatre_next_button" />

            <View
                android:id="@+id/liveshow_threate_cut_bottom"
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_alignParentBottom="true"
                android:background="@color/color_cutline_ececec" />

        </RelativeLayout>

        <TextView
            android:id="@+id/liveshowinfo_tv_people_online"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginBottom="24dp"
            android:layout_marginTop="38dp"
            tools:text="234人在线互动" />

        <com.cnlive.goldenline.ui.widget.GridViewForRecyclerView
            android:id="@+id/liveshowinfo_gridview"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="32dp"
            android:layout_marginLeft="29dp"
            android:cacheColorHint="@android:color/transparent"
            android:columnWidth="29dp"
            android:horizontalSpacing="5dp"
            android:numColumns="auto_fit"
            android:scrollbars="none"
            android:stretchMode="none">

        </com.cnlive.goldenline.ui.widget.GridViewForRecyclerView>

        <Button
            android:id="@+id/liveshowinfo_btn_buyticket"
            android:layout_width="match_parent"
            android:layout_height="42dp"
            android:layout_gravity="center_horizontal"
            android:layout_marginBottom="20dp"
            android:layout_marginLeft="26dp"
            android:layout_marginRight="26dp"
            android:background="@drawable/red_btn_bg_ff584b"
            android:gravity="center"
            android:textColor="#fff"
            android:textSize="14sp"
            tools:text="¥20 购票入场" />

    </LinearLayout>
</ScrollView>