item_course_list.xml 2.67 KB
Newer Older
严久程 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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:background="@drawable/bg_item_course_list">

    <com.yidianling.course.widget.CourseItemNewView
        android:id="@+id/view_content"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        tools:layout_height="50dp" />

    <LinearLayout
        android:id="@+id/iv_export_btn_layout"
        android:layout_width="wrap_content"
        android:layout_height="50dp"
        android:layout_marginRight="15dp"
        android:gravity="center_vertical"
        android:orientation="horizontal"
        android:visibility="gone"
        app:layout_constraintRight_toRightOf="@+id/view_content"
        app:layout_constraintTop_toBottomOf="@+id/view_content"
        tools:visibility="visible">

        <TextView
            android:id="@+id/tv_course_item_first"
            android:layout_width="wrap_content"
            android:layout_height="28dp"
            android:layout_marginRight="8dp"
            android:layout_weight="1"
            android:background="@drawable/tv_course_item_btn_background"
            android:gravity="center"
            android:paddingLeft="11dp"
            android:paddingRight="11dp"
            android:text="和TA私聊"
严久程 committed
38
            android:textColor="@color/course_color_333333"
严久程 committed
39 40 41 42 43 44 45 46 47 48 49 50 51
            android:textSize="12sp"
            android:visibility="invisible" />

        <TextView
            android:id="@+id/tv_course_item_comment"
            android:layout_width="wrap_content"
            android:layout_height="28dp"
            android:layout_weight="1"
            android:background="@drawable/course_comment_item_btn_background"
            android:gravity="center"
            android:paddingLeft="11dp"
            android:paddingRight="11dp"
            android:text="评价课程"
konghaorui committed
52
            android:textColor="@color/platform_but_text_color"
严久程 committed
53 54 55 56 57 58 59 60 61
            android:textSize="12sp"
            android:visibility="invisible" />

    </LinearLayout>

    <View
        android:id="@+id/tv_line_bottom"
        android:layout_width="0dp"
        android:layout_height="1dp"
严久程 committed
62
        android:background="@color/course_color_F7F7F7"
严久程 committed
63 64 65 66 67 68
        android:visibility="invisible"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/iv_export_btn_layout" />

</android.support.constraint.ConstraintLayout>