fm_home.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:orientation="vertical"
  6. android:background="@color/default_bg">
  7. <LinearLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="?attr/actionBarSize"
  10. android:orientation="vertical">
  11. <include layout="@layout/view_home_title"/>
  12. </LinearLayout>
  13. <com.common.library.pulltorefresh.PullToRefreshScrollView
  14. android:id="@+id/sv_main"
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent">
  17. <LinearLayout
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:orientation="vertical">
  21. <RelativeLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="200dp"
  24. android:background="@color/white">
  25. <android.support.v4.view.ViewPager
  26. android:id="@+id/viewpager"
  27. android:layout_width="300dp"
  28. android:layout_height="match_parent"
  29. android:layout_centerInParent="true"
  30. android:clipChildren="false"/>
  31. </RelativeLayout>
  32. <GridView
  33. android:id="@+id/gv_course_navigation"
  34. android:layout_width="match_parent"
  35. android:layout_height="wrap_content"
  36. android:background="@color/white"
  37. android:numColumns="4"/>
  38. </LinearLayout>
  39. </com.common.library.pulltorefresh.PullToRefreshScrollView>
  40. </LinearLayout>