Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.41 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:id="@+id/quizLinearLayoutEasy"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical"
  7. android:paddingBottom="16dp"
  8. android:paddingLeft="16dp"
  9. android:paddingRight="16dp"
  10. android:paddingTop="16dp"
  11. tools:context="com.example.android.kingofflags.EasyActivity">
  12.  
  13. <LinearLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:layout_gravity="center"
  17. android:layout_marginBottom="10dp"
  18. android:orientation="horizontal"
  19. android:baselineAligned="false"
  20. android:weightSum="2">
  21.  
  22. <LinearLayout
  23. android:layout_width="0dp"
  24. android:layout_height="wrap_content"
  25. android:layout_gravity="center"
  26. android:layout_weight="1"
  27. android:gravity="start"
  28. android:orientation="horizontal"
  29. android:padding="10dp">
  30.  
  31. <TextView
  32. android:id="@+id/currentScoreText"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_marginEnd="2dp"
  36. android:layout_marginRight="2dp"
  37. android:text="@string/current_score"
  38. android:textColor="@android:color/black"
  39. android:textSize="20sp" />
  40.  
  41. <TextView
  42. android:id="@+id/currentScoreEasy"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:text="@string/current_score_0"
  46. android:textColor="@android:color/holo_red_dark"
  47. android:textSize="20sp" />
  48. </LinearLayout>
  49.  
  50. <LinearLayout
  51. android:layout_width="0dp"
  52. android:layout_height="wrap_content"
  53. android:layout_weight="1"
  54. android:gravity="end"
  55. android:orientation="horizontal"
  56. android:padding="10dp">
  57.  
  58. <TextView
  59. android:id="@+id/lives"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:layout_marginEnd="2dp"
  63. android:layout_marginRight="2dp"
  64. android:gravity="center"
  65. android:text="@string/current_lives"
  66. android:textColor="@android:color/black"
  67. android:textSize="20sp" />
  68.  
  69. <TextView
  70. android:id="@+id/currentLivesEasy"
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:text="@string/current_lives_5"
  74. android:textColor="@android:color/holo_red_dark"
  75. android:textSize="20sp" />
  76. </LinearLayout>
  77. </LinearLayout>
  78.  
  79. <ImageView
  80. android:id="@+id/flagImageViewEasy"
  81. android:layout_width="match_parent"
  82. android:layout_height="0dp"
  83. android:layout_gravity="center"
  84. android:layout_marginBottom="@dimen/spacing"
  85. android:layout_marginLeft="@dimen/activity_horizontal_margin"
  86. android:layout_marginRight="@dimen/activity_horizontal_margin"
  87. android:layout_marginTop="5dp"
  88. android:layout_weight="1"
  89. android:adjustViewBounds="true"
  90. android:contentDescription="@string/image_description"
  91. android:scaleType="fitCenter" />
  92.  
  93. <TextView
  94. android:id="@+id/guessCountryTextViewEasy"
  95. android:layout_width="wrap_content"
  96. android:layout_height="wrap_content"
  97. android:layout_gravity="center_horizontal"
  98. android:layout_marginBottom="8dp"
  99. android:layout_marginTop="10dp"
  100. android:text="@string/guess_country"
  101. android:textColor="#4c4c4c"
  102. android:textSize="20sp" />
  103.  
  104. <LinearLayout
  105. android:id="@+id/row1LinearLayoutEasy"
  106. android:layout_width="match_parent"
  107. android:layout_height="wrap_content"
  108. android:orientation="horizontal">
  109.  
  110. </LinearLayout>
  111.  
  112. <LinearLayout
  113. android:id="@+id/row2LinearLayoutEasy"
  114. android:layout_width="match_parent"
  115. android:layout_height="wrap_content"
  116. android:orientation="horizontal">
  117.  
  118. </LinearLayout>
  119.  
  120. <LinearLayout
  121. android:id="@+id/row3LinearLayoutEasy"
  122. android:layout_width="match_parent"
  123. android:layout_height="wrap_content"
  124. android:layout_marginBottom="5dp"
  125. android:orientation="horizontal">
  126.  
  127. <Button
  128. android:id="@+id/answerButton1Easy"
  129. android:layout_width="0dp"
  130. android:layout_height="match_parent"
  131. android:layout_marginEnd="5dp"
  132. android:layout_marginRight="5dp"
  133. android:layout_weight="1"
  134. android:background="@color/colorAccent"
  135. android:lines="2"
  136. android:text="New Button"
  137. android:textAllCaps="false"
  138. android:textColor="@color/button_text_color"
  139. android:textSize="16sp"
  140. android:textStyle="bold" />
  141.  
  142. <Button
  143. android:id="@+id/answerButton2Easy"
  144. android:layout_width="0dp"
  145. android:layout_height="match_parent"
  146. android:layout_weight="1"
  147. android:background="@color/colorAccent"
  148. android:lines="2"
  149. android:text="New Button"
  150. android:textAllCaps="false"
  151. android:textColor="@color/button_text_color"
  152. android:textSize="16sp"
  153. android:textStyle="bold" />
  154. </LinearLayout>
  155.  
  156. <LinearLayout
  157. android:id="@+id/row4LinearLayoutEasy"
  158. android:layout_width="match_parent"
  159. android:layout_height="wrap_content"
  160. android:layout_marginBottom="10dp"
  161. android:orientation="horizontal">
  162.  
  163. <Button
  164. android:id="@+id/answerButton3Easy"
  165. android:layout_width="0dp"
  166. android:layout_height="match_parent"
  167. android:layout_marginEnd="5dp"
  168. android:layout_marginRight="5dp"
  169. android:layout_weight="1"
  170. android:background="@color/colorAccent"
  171. android:lines="2"
  172. android:text="New Button"
  173. android:textAllCaps="false"
  174. android:textColor="@color/button_text_color"
  175. android:textSize="16sp"
  176. android:textStyle="bold" />
  177.  
  178. <Button
  179. android:id="@+id/answerButton4Easy"
  180. android:layout_width="0dp"
  181. android:layout_height="match_parent"
  182. android:layout_weight="1"
  183. android:background="@color/colorAccent"
  184. android:lines="2"
  185. android:text="New Button"
  186. android:textAllCaps="false"
  187. android:textColor="@color/button_text_color"
  188. android:textSize="16sp"
  189. android:textStyle="bold" />
  190. </LinearLayout>
  191.  
  192. <TextView
  193. android:id="@+id/answerTextViewEasy"
  194. android:layout_width="wrap_content"
  195. android:layout_height="wrap_content"
  196. android:layout_gravity="bottom|center_horizontal"
  197. android:gravity="center_horizontal"
  198. android:textSize="36sp"
  199. android:textStyle="bold" />
  200.  
  201. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement