主界面
<?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=".ui.CourseFragment"> <include android:id="@+id/hor_header" layout="@layout/grid_header" /> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="vertical" android:fillViewport="true" android:layout_below="@+id/hor_header" > <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <include layout="@layout/layout_num_content"/> <include layout="@layout/layout_weekly_columns" /> </LinearLayout> </ScrollView> </RelativeLayout>
课程详情
<?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" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="10dp" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="top.topnb.app.ui.CourseInfoActivity"> <TextView android:id="@+id/course_info_course_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/app_name" android:padding="10dp" android:layout_margin="5dp" android:textSize="@dimen/course_info_course_name_text_size"/> <TextView android:id="@+id/skdx" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/course_info_course_name" android:padding="5dp" android:layout_marginTop="5dp"