fragment_course.xml 1.9 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
    tools:context=".fragment.CourseFragment">

    <com.hh.xuetubao.Utils.CustomScrollView
        android:id="@+id/scroll"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scrollbars="none">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#FFFFFF">


            <ImageView
                android:id="@+id/img_top"
                android:layout_width="match_parent"
                android:layout_height="@dimen/dp_200"
                android:layout_marginLeft="@dimen/dp_20"
                android:layout_marginTop="@dimen/dp_20"
                android:layout_marginRight="@dimen/dp_20"
                android:src="@drawable/course_logo" />


            <TextView
                android:id="@+id/mianfei"
                android:layout_width="@dimen/dp_72"
                android:layout_height="wrap_content"
                android:layout_below="@id/img_top"
                android:layout_marginLeft="@dimen/dp_20"
                android:layout_marginTop="@dimen/dp_24"
                android:text="免费好课"
                android:textColor="#333333"
                android:textSize="18sp" />

            <com.jcodecraeer.xrecyclerview.XRecyclerView
                android:id="@+id/xrecyclerview"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_below="@+id/mianfei"
                android:layout_marginTop="@dimen/dp_20"
                android:layout_marginLeft="@dimen/dp_20" />
        </RelativeLayout>

    </com.hh.xuetubao.Utils.CustomScrollView>


</RelativeLayout>