Guest User

Untitled

a guest
Apr 30th, 2020
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.75 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  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:orientation="vertical"
  9. tools:context=".DetailActivity">
  10.  
  11. <RelativeLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:id="@+id/relative">
  15.  
  16. <com.google.android.material.appbar.AppBarLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:id="@+id/bar"
  20. android:background="?android:attr/windowBackground">
  21.  
  22. <androidx.appcompat.widget.Toolbar
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:id="@+id/toolbar"
  26. android:background="?android:attr/windowBackground">
  27.  
  28.  
  29.  
  30.  
  31. <RelativeLayout
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. >
  35.  
  36. <androidx.appcompat.widget.AppCompatImageButton
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:src="@drawable/ic_back"
  40. android:layout_alignParentStart="true"
  41. android:background="@null"
  42. android:id="@+id/back1"/>
  43.  
  44. <ImageView
  45. android:layout_width="180dp"
  46. android:layout_height="35dp"
  47. android:layout_centerHorizontal="true"
  48. android:src="@drawable/logo"
  49. />
  50.  
  51.  
  52.  
  53. </RelativeLayout>
  54.  
  55. </androidx.appcompat.widget.Toolbar>
  56.  
  57. </com.google.android.material.appbar.AppBarLayout>
  58. </RelativeLayout>
  59.  
  60. <LinearLayout
  61. android:layout_width="match_parent"
  62. android:layout_height="wrap_content"
  63. android:orientation="vertical">
  64.  
  65. <ScrollView
  66. android:layout_width="match_parent"
  67. android:layout_height="match_parent"
  68. android:id="@+id/scrollView">
  69.  
  70. <LinearLayout
  71. android:layout_width="match_parent"
  72. android:layout_height="match_parent"
  73. android:orientation="vertical">
  74.  
  75. <ImageView
  76. android:layout_width="match_parent"
  77. android:layout_height="400dp"
  78. android:id="@+id/image"/>
  79.  
  80. <TextView
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:id="@+id/title"
  84. android:text="TITLE"
  85. android:maxLines="3"
  86. android:textSize="15sp"
  87. android:gravity="center_horizontal"
  88. android:paddingTop="5dp"/>
  89.  
  90. <LinearLayout
  91. android:layout_width="match_parent"
  92. android:layout_height="wrap_content"
  93. android:orientation="horizontal">
  94. <TextView
  95. android:layout_width="wrap_content"
  96. android:layout_height="wrap_content"
  97. android:text="Price"
  98. android:textSize="20sp"
  99. android:layout_marginLeft="8dp"
  100. android:id="@+id/price"/>
  101.  
  102. <TextView
  103. android:layout_width="wrap_content"
  104. android:layout_height="wrap_content"
  105. android:text="UAH"
  106. android:textSize="20sp"
  107. android:layout_marginLeft="8dp"
  108. android:id="@+id/val"/>
  109. </LinearLayout>
  110. <View
  111. android:layout_width="fill_parent"
  112. android:layout_height="1dp"
  113. android:layout_marginTop="5dp"
  114. android:background="@color/colorPrimaryDark"/>
  115.  
  116. <LinearLayout
  117. android:layout_width="match_parent"
  118. android:layout_height="wrap_content"
  119. android:orientation="horizontal">
  120.  
  121.  
  122. <TextView
  123. android:layout_width="wrap_content"
  124. android:layout_height="wrap_content"
  125. android:text="Town"
  126. android:textSize="20sp"
  127. android:gravity="end"
  128. android:layout_marginLeft="8dp"
  129. android:id="@+id/town"/>
  130. </LinearLayout>
  131.  
  132. <View
  133. android:layout_width="fill_parent"
  134. android:layout_height="1dp"
  135. android:layout_marginTop="5dp"
  136. android:background="@color/colorPrimaryDark"/>
  137.  
  138. <TextView
  139. android:layout_width="match_parent"
  140. android:layout_height="wrap_content"
  141. android:id="@+id/description"
  142. android:textSize="20sp"
  143. android:layout_marginLeft="8dp"
  144. android:text="Description"/>
  145.  
  146. <LinearLayout
  147. android:layout_width="match_parent"
  148. android:layout_height="wrap_content"
  149. android:orientation="horizontal">
  150.  
  151. <ImageView
  152. android:layout_width="wrap_content"
  153. android:layout_height="wrap_content"
  154. android:src="@drawable/ic_phone"
  155. android:layout_marginTop="5dp"
  156. android:layout_marginLeft="8dp"/>
  157.  
  158. <TextView
  159. android:layout_width="match_parent"
  160. android:layout_height="wrap_content"
  161. android:textSize="20sp"
  162. android:layout_marginLeft="8dp"
  163. android:layout_marginTop="5dp"
  164. android:id="@+id/phone_number"
  165. android:text="0668328881"/>
  166. </LinearLayout>
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174. </LinearLayout>
  175.  
  176. </ScrollView>
  177. </LinearLayout>
  178. <LinearLayout
  179. android:layout_width="match_parent"
  180. android:layout_height="match_parent"
  181. android:orientation="horizontal"
  182. >
  183. <EditText
  184. android:layout_width="match_parent"
  185. android:layout_height="40dp"
  186. android:layout_weight="3"
  187. android:id="@+id/message"
  188. android:layout_gravity="bottom"
  189. android:background="@drawable/edit_text_background"/>
  190.  
  191.  
  192. <androidx.appcompat.widget.AppCompatImageButton
  193. android:layout_width="wrap_content"
  194. android:layout_height="40dp"
  195. android:background="@color/white"
  196. android:src="@drawable/ic_send"
  197. android:layout_gravity="bottom"/>
  198.  
  199.  
  200. </LinearLayout>
  201.  
  202.  
  203.  
  204. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment