fragment_layout_post.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <com.ivalentin.margolariak.CustomScrollView
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:background="@color/background_app">
  8. <LinearLayout
  9. android:orientation="vertical"
  10. android:layout_width="match_parent"
  11. android:layout_height="fill_parent"
  12. android:layout_marginBottom="10dp">
  13. <LinearLayout
  14. android:orientation="vertical"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:background="@drawable/section"
  18. android:layout_margin="10dp"
  19. tools:ignore="UselessParent">
  20. <TextView
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:id="@+id/tv_post_title"
  24. android:textAppearance="?android:attr/textAppearanceLarge"
  25. android:textStyle="bold"
  26. tools:layout_width="match_parent"
  27. android:background="@drawable/section_title"
  28. android:paddingBottom="4dp"
  29. android:paddingEnd="10dp"
  30. android:paddingLeft="20dp"
  31. android:paddingRight="10dp"
  32. android:paddingStart="20dp"
  33. android:paddingTop="4dp"
  34. android:textColor="@color/section_title"/>
  35. <LinearLayout
  36. android:orientation="vertical"
  37. android:layout_width="match_parent"
  38. android:layout_height="match_parent"
  39. android:background="@drawable/entry"
  40. android:padding="7dp"
  41. android:layout_margin="8dp">
  42. <ImageView
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:id="@+id/iv_post_0"
  46. android:contentDescription="@string/app_cdesc"
  47. android:layout_gravity="center_horizontal"
  48. android:visibility="gone"
  49. android:maxHeight="90dp" />
  50. <WebView
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:id="@+id/wv_post_text" />
  54. <LinearLayout
  55. android:orientation="horizontal"
  56. android:layout_width="match_parent"
  57. android:layout_height="match_parent"
  58. android:gravity="center_horizontal"
  59. android:layout_gravity="center_horizontal">
  60. <ImageView
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:id="@+id/iv_post_1"
  64. android:contentDescription="@string/app_cdesc"
  65. android:visibility="gone"
  66. android:layout_gravity="center_horizontal"
  67. android:maxHeight="50dp" />
  68. <ImageView
  69. android:layout_width="wrap_content"
  70. android:layout_height="wrap_content"
  71. android:id="@+id/iv_post_2"
  72. android:contentDescription="@string/app_cdesc"
  73. android:visibility="gone"
  74. android:maxHeight="50dp" />
  75. <ImageView
  76. android:layout_width="wrap_content"
  77. android:layout_height="wrap_content"
  78. android:id="@+id/iv_post_3"
  79. android:contentDescription="@string/app_cdesc"
  80. android:visibility="gone"
  81. android:maxHeight="50dp" />
  82. <ImageView
  83. android:layout_width="wrap_content"
  84. android:layout_height="wrap_content"
  85. android:id="@+id/iv_post_4"
  86. android:contentDescription="@string/app_cdesc"
  87. android:visibility="gone"
  88. android:maxHeight="50dp" />
  89. </LinearLayout>
  90. <ImageView
  91. android:layout_width="match_parent"
  92. android:layout_height="0.5dp"
  93. android:background="@color/image_border"
  94. android:layout_margin="10dp"
  95. android:layout_marginBottom="1dp"
  96. android:layout_marginEnd="10dp"
  97. android:layout_marginLeft="10dp"
  98. android:layout_marginRight="10dp"
  99. android:layout_marginStart="10dp"
  100. android:layout_marginTop="3dp"
  101. android:alpha="0.5"
  102. android:adjustViewBounds="false"
  103. android:contentDescription="@string/empty"/>
  104. <TextView
  105. android:layout_width="wrap_content"
  106. android:layout_height="wrap_content"
  107. android:id="@+id/tv_post_date"
  108. android:layout_gravity="end" />
  109. </LinearLayout>
  110. <LinearLayout
  111. android:orientation="vertical"
  112. android:layout_width="match_parent"
  113. android:layout_height="match_parent"
  114. android:background="@drawable/entry"
  115. android:padding="7dp"
  116. android:layout_margin="8dp">
  117. <TextView
  118. android:layout_width="wrap_content"
  119. android:layout_height="wrap_content"
  120. android:id="@+id/tv_comments"
  121. android:textAppearance="?android:attr/textAppearanceMedium"
  122. android:textColor="@color/entry_title"
  123. android:textStyle="bold" />
  124. <LinearLayout
  125. android:orientation="vertical"
  126. android:layout_width="match_parent"
  127. android:layout_height="match_parent"
  128. android:id="@+id/ll_comment_list">
  129. </LinearLayout>
  130. <ImageView
  131. android:layout_width="match_parent"
  132. android:layout_height="0.5dp"
  133. android:background="@color/image_border"
  134. android:layout_margin="10dp"
  135. android:layout_marginBottom="1dp"
  136. android:layout_marginEnd="10dp"
  137. android:layout_marginLeft="10dp"
  138. android:layout_marginRight="10dp"
  139. android:layout_marginStart="10dp"
  140. android:layout_marginTop="3dp"
  141. android:alpha="0.5"
  142. android:adjustViewBounds="false"
  143. android:contentDescription="@string/empty"/>
  144. <LinearLayout
  145. android:orientation="vertical"
  146. android:layout_width="match_parent"
  147. android:layout_height="match_parent"
  148. android:id="@+id/ll_new_comment"
  149. android:layout_marginTop="15dp"
  150. android:layout_marginLeft="7dp"
  151. android:layout_marginRight="7dp"
  152. android:layout_marginBottom="7dp">
  153. <TextView
  154. android:layout_width="wrap_content"
  155. android:layout_height="wrap_content"
  156. android:text="@string/comment_your_comment"
  157. android:id="@+id/textView"
  158. android:textAppearance="@android:style/TextAppearance.Medium" />
  159. <EditText
  160. android:layout_width="fill_parent"
  161. android:layout_height="wrap_content"
  162. android:id="@+id/et_comment_text"
  163. android:minLines="2"
  164. android:hint="@string/comment_text"
  165. android:background="@drawable/input"
  166. android:textColor="@color/input_text_color"
  167. android:textColorHint="@color/input_hint_color"
  168. android:gravity="top"
  169. android:layout_margin="4dp"
  170. android:inputType="textCapSentences|textMultiLine"/>
  171. <EditText
  172. android:layout_width="fill_parent"
  173. android:layout_height="wrap_content"
  174. android:id="@+id/et_comment_name"
  175. android:layout_marginLeft="20dp"
  176. android:layout_marginRight="20dp"
  177. android:hint="@string/comment_name"
  178. android:background="@drawable/input"
  179. android:textColor="@color/input_text_color"
  180. android:textColorHint="@color/input_hint_color"
  181. android:layout_marginTop="5dp"
  182. android:layout_marginBottom="5dp"
  183. android:inputType="textCapSentences"/>
  184. <LinearLayout
  185. android:orientation="horizontal"
  186. android:layout_width="match_parent"
  187. android:layout_height="match_parent"
  188. android:gravity="center_horizontal"
  189. android:layout_marginBottom="10dp">
  190. <Button
  191. android:layout_width="wrap_content"
  192. android:layout_height="wrap_content"
  193. android:text="@string/comment_send"
  194. android:id="@+id/bt_comment_send"
  195. android:layout_gravity="center_horizontal"
  196. android:background="@drawable/button_selector"
  197. android:textColor="@color/input_button_color"
  198. android:textStyle="bold"
  199. android:layout_marginTop="5dp"
  200. android:layout_marginBottom="5dp" />
  201. <ProgressBar
  202. android:layout_width="wrap_content"
  203. android:layout_height="wrap_content"
  204. android:id="@+id/pb_comment"
  205. android:layout_gravity="center_horizontal"
  206. android:visibility="gone" />
  207. </LinearLayout>
  208. </LinearLayout>
  209. </LinearLayout>
  210. </LinearLayout>
  211. </LinearLayout>
  212. </com.ivalentin.margolariak.CustomScrollView>