activity_course_detail.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="vertical"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@color/default_bg">
  7. <include
  8. android:id="@+id/view_title"
  9. layout="@layout/view_title"/>
  10. <ScrollView
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:layout_below="@+id/view_title">
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:orientation="vertical">
  18. <RelativeLayout
  19. android:layout_width="match_parent"
  20. android:layout_height="150dp"
  21. android:background="@color/white">
  22. <android.support.v4.view.ViewPager
  23. android:id="@+id/vp_banner"
  24. android:layout_width="match_parent"
  25. android:layout_height="match_parent" />
  26. </RelativeLayout>
  27. <LinearLayout
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:background="@color/white"
  31. android:orientation="vertical"
  32. android:padding="@dimen/default_content_margin">
  33. <TextView
  34. android:id="@+id/tv_org_name"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:text="XX培训学校-某某分校"
  38. android:textColor="@color/color_333"
  39. android:textSize="@dimen/company_16sp" />
  40. <RelativeLayout
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:layout_marginTop="@dimen/company_15dp">
  44. <TextView
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:text="收藏:1234次"
  48. android:textColor="@color/color_666"
  49. android:textSize="@dimen/company_12sp" />
  50. <TextView
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:layout_alignParentRight="true"
  54. android:text="市场价 ¥2280" />
  55. </RelativeLayout>
  56. </LinearLayout>
  57. <LinearLayout
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:layout_marginTop="@dimen/company_10dp"
  61. android:background="@color/white"
  62. android:orientation="vertical"
  63. android:padding="@dimen/default_content_margin">
  64. <TextView
  65. android:layout_width="wrap_content"
  66. android:layout_height="wrap_content"
  67. android:text="机构介绍"
  68. android:textColor="@color/color_333"
  69. android:textSize="@dimen/company_16sp" />
  70. <TextView
  71. android:id="@+id/tv_org_desc"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:layout_marginTop="@dimen/company_5dp"
  75. android:text="新东方创办于1993年,23年专注教育培训,累积培训学员超过2000万,从早教到成人,业务涵盖早教、学前、小学、中学、四六级、考研、出国考试、留学咨询、英语能力提升、国际游学、国际教育、图书、网络课堂等60多所学校,30000多名教职员工,旨在为学员提供一站式终身学习服务"
  76. android:textColor="@color/color_666"
  77. android:textSize="@dimen/company_14sp" />
  78. </LinearLayout>
  79. </LinearLayout>
  80. </ScrollView>
  81. <LinearLayout
  82. android:layout_width="match_parent"
  83. android:layout_height="@dimen/company_45dp"
  84. android:layout_alignParentBottom="true"
  85. android:orientation="horizontal"
  86. android:background="@color/white">
  87. <TextView
  88. android:layout_width="0dp"
  89. android:layout_height="match_parent"
  90. android:layout_weight="1"
  91. android:layout_gravity="center"
  92. android:gravity="center"
  93. android:background="@color/white"
  94. android:textSize="@dimen/company_16sp"
  95. android:textColor="@color/color_price"
  96. android:text="¥1280元"/>
  97. <TextView
  98. android:layout_width="0dp"
  99. android:layout_height="match_parent"
  100. android:layout_weight="1"
  101. android:layout_gravity="center"
  102. android:gravity="center"
  103. android:background="@color/main_color"
  104. android:textSize="@dimen/company_16sp"
  105. android:textColor="@color/white"
  106. android:text="立即报名"/>
  107. </LinearLayout>
  108. </RelativeLayout>