activity_main.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:background="@color/CFFFFFF"
  9. android:orientation="vertical">
  10. <android.support.constraint.ConstraintLayout
  11. android:id="@+id/container_main"
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent"
  14. android:background="@color/CFFFFFF"
  15. android:orientation="vertical"
  16. >
  17. </android.support.constraint.ConstraintLayout>
  18. <!--app:layout_behavior="@string/appbar_scrolling_view_behavior"-->
  19. <android.support.design.widget.AppBarLayout
  20. android:id="@+id/layout_app_bar"
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:background="@null"
  24. app:elevation="0dp"
  25. >
  26. <android.support.v7.widget.Toolbar
  27. android:id="@+id/toolbar"
  28. android:layout_width="match_parent"
  29. android:layout_height="@dimen/action_bar_height"
  30. android:minHeight="0dp"
  31. >
  32. </android.support.v7.widget.Toolbar>
  33. <RelativeLayout
  34. android:id="@+id/layout_app_bar_contents"
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:layout_gravity="bottom"
  38. android:background="@color/CFFFFFF"
  39. android:gravity="start">
  40. <ProgressBar
  41. android:id="@+id/progress_bar"
  42. style="?android:attr/progressBarStyleHorizontal"
  43. android:layout_width="match_parent"
  44. android:layout_height="4dp"
  45. android:layout_centerInParent="false"
  46. android:progressDrawable="@drawable/sign_up_progress"
  47. tools:progress="50"
  48. />
  49. </RelativeLayout>
  50. <android.support.constraint.ConstraintLayout
  51. android:id="@+id/layout_category_main_tab"
  52. android:layout_width="match_parent"
  53. android:layout_height="wrap_content"
  54. android:background="@color/CFFFFFF"
  55. android:visibility="gone"
  56. tools:visibility="visible"
  57. >
  58. <RadioGroup
  59. android:id="@+id/category_main_tab"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:layout_marginTop="24dp"
  63. android:layout_marginBottom="26dp"
  64. android:orientation="horizontal"
  65. app:layout_constraintBottom_toBottomOf="parent"
  66. app:layout_constraintEnd_toEndOf="parent"
  67. app:layout_constraintStart_toStartOf="parent"
  68. app:layout_constraintTop_toTopOf="parent"
  69. >
  70. <RadioButton
  71. android:id="@+id/tab_first_category"
  72. android:layout_width="56dp"
  73. android:layout_height="wrap_content"
  74. android:layout_marginStart="2dp"
  75. android:layout_marginEnd="2dp"
  76. android:background="@null"
  77. android:button="@null"
  78. android:drawableTop="@drawable/category_main_first_tab"
  79. android:drawablePadding="8dp"
  80. android:lineSpacingExtra="4dp"
  81. android:text="@string/contents_category1_tab_title"
  82. android:textAlignment="center"
  83. android:textColor="@drawable/my_faq_radio_text_selector"
  84. android:textSize="12dp"
  85. />
  86. <RadioButton
  87. android:id="@+id/tab_second_category"
  88. android:layout_width="56dp"
  89. android:layout_height="wrap_content"
  90. android:layout_marginStart="2dp"
  91. android:layout_marginEnd="2dp"
  92. android:background="@null"
  93. android:button="@null"
  94. android:drawableTop="@drawable/category_main_second_tab"
  95. android:drawablePadding="8dp"
  96. android:lineSpacingExtra="4dp"
  97. android:text="@string/contents_category2_tab_title"
  98. android:textAlignment="center"
  99. android:textColor="@drawable/my_faq_radio_text_selector"
  100. android:textSize="12dp"
  101. />
  102. <RadioButton
  103. android:id="@+id/tab_third_category"
  104. android:layout_width="56dp"
  105. android:layout_height="wrap_content"
  106. android:layout_marginStart="2dp"
  107. android:layout_marginEnd="2dp"
  108. android:background="@null"
  109. android:button="@null"
  110. android:drawableTop="@drawable/category_main_third_tab"
  111. android:drawablePadding="8dp"
  112. android:lineSpacingExtra="4dp"
  113. android:text="@string/contents_category3_tab_title"
  114. android:textAlignment="center"
  115. android:textColor="@drawable/my_faq_radio_text_selector"
  116. android:textSize="12dp"
  117. />
  118. <RadioButton
  119. android:id="@+id/tab_fourth_category"
  120. android:layout_width="56dp"
  121. android:layout_height="wrap_content"
  122. android:layout_marginStart="2dp"
  123. android:layout_marginEnd="2dp"
  124. android:background="@null"
  125. android:button="@null"
  126. android:drawableTop="@drawable/category_main_fourth_tab"
  127. android:drawablePadding="8dp"
  128. android:lineSpacingExtra="4dp"
  129. android:text="@string/contents_category4_tab_title"
  130. android:textAlignment="center"
  131. android:textColor="@drawable/my_faq_radio_text_selector"
  132. android:textSize="12dp"
  133. />
  134. <RadioButton
  135. android:id="@+id/tab_fifth_category"
  136. android:layout_width="56dp"
  137. android:layout_height="wrap_content"
  138. android:layout_marginStart="2dp"
  139. android:layout_marginEnd="2dp"
  140. android:background="@null"
  141. android:button="@null"
  142. android:drawableTop="@drawable/category_main_fifth_tab"
  143. android:drawablePadding="8dp"
  144. android:lineSpacingExtra="4sp"
  145. android:text="@string/contents_category5_tab_title"
  146. android:textAlignment="center"
  147. android:textColor="@drawable/my_faq_radio_text_selector"
  148. android:textSize="12sp"
  149. />
  150. </RadioGroup>
  151. <View
  152. android:layout_width="match_parent"
  153. android:layout_height="1dp"
  154. android:background="@color/CE5E5E5"
  155. app:layout_constraintBottom_toBottomOf="parent"
  156. />
  157. </android.support.constraint.ConstraintLayout>
  158. </android.support.design.widget.AppBarLayout>
  159. <android.support.design.widget.FloatingActionButton
  160. android:id="@+id/floating_action_button"
  161. android:layout_width="44dp"
  162. android:layout_height="44dp"
  163. android:layout_gravity="bottom|end"
  164. android:layout_margin="@dimen/fab_margin"
  165. android:background="@null"
  166. android:elevation="0dp"
  167. android:scaleType="center"
  168. app:elevation="0dp"
  169. tools:srcCompat="@drawable/icon_floating_inqurebtn"
  170. />
  171. </android.support.design.widget.CoordinatorLayout>