layout_subscribeshow_basicinfo.xml 6.88 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingBottom="5dp">

    <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/subscribeshowinfo_tv_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:textSize="16sp"
            android:textColor="#333"
            tools:text="百老汇纪念歌剧《JERSEY BOYS》" />

        <TextView
            android:id="@+id/subscribeshowinfo_tv_tag"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:background="@drawable/rectangle_f8b551_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/subscribeshowinfo_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:textSize="12sp"
        android:textColor="#b8b7b7"
        android:paddingLeft="10dp"
        android:paddingRight="10dp"
        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/subscribeshowinfo_img_more"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_marginTop="22dp"
            android:paddingRight="20dp"
            android:paddingTop="10dp"
            android:paddingBottom="10dp"
            android:src="@mipmap/icon_expanded" />

        <ImageView
            android:id="@+id/subscribeshowinfo_img_share"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_marginTop="19dp"
            android:paddingLeft="20dp"
            android:paddingTop="10dp"
            android:paddingBottom="10dp"
            android:src="@mipmap/order_share_icon" />

        <ImageView
            android:id="@+id/subscribeshowinfo_img_collect"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginRight="17dp"
            android:layout_marginTop="19dp"
            android:layout_toLeftOf="@id/subscribeshowinfo_img_share"
            android:src="@mipmap/icon_uncollect"
            android:visibility="gone" />

    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/subscribeshowinfo_layout_timer_root"
        android:layout_width="match_parent"
        android:layout_height="72dp"
       >

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

        <cn.iwgang.countdownview.CountdownView
            android:id="@+id/subscribeshowinfo_timer"
            android:layout_width="110dp"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true"
            android:layout_marginBottom="20dp"
            android:layout_marginTop="20dp"
            app:isHideTimeBackground="false"
            android:layout_marginLeft="10dp"
            app:isShowHour="true"
            app:isShowMinute="true"
            app:isShowSecond="true"
            app:isSuffixTextBold="true"
            app:isTimeTextBold="true"
            app:suffix=":"
            app:suffixGravity="center"
            app:suffixTextColor="@color/tab_bg"
            app:suffixTextSize="15sp"
            app:timeBgRadius="4dp"
            app:timeBgSize="10dp"
            app:timeTextColor="#FFFFFF"
            app:timeTextSize="13sp" />

        <TextView
            android:id="@+id/subscribeshowinfo_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_centerVertical="true"
            android:layout_toLeftOf="@id/subscribeshowinfo_tv_price"
            android:src="@mipmap/gift_coin" />

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

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

    </RelativeLayout>

    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="@color/color_cutline_ececec" />
</LinearLayout>