Projekt Schafkopfpunktezähler: Erster Prototyp einer App, die dem Benutzer die Notwendigkeit des Punktezählens beim Schafkopfspiel abnimmt.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

choosegame.xml 9.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@drawable/woodentable"
  8. tools:context=".ChooseGame">
  9. <RelativeLayout
  10. android:id="@+id/realtivelayout_game"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:gravity="center">
  14. <TextView
  15. android:id="@+id/title_choosegame"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:layout_centerHorizontal="true"
  19. android:layout_marginTop="10dp"
  20. android:fontFamily="@font/germania_one"
  21. android:lineSpacingExtra="0sp"
  22. android:text="@string/chooseGame"
  23. android:textAlignment="center"
  24. android:textAllCaps="false"
  25. android:textColor="@android:color/black"
  26. android:textSize="30sp" />
  27. <TextView
  28. android:id="@+id/title_playstyle"
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:layout_below="@id/title_choosegame"
  32. android:layout_centerHorizontal="false"
  33. android:layout_marginTop="10dp"
  34. android:fontFamily="@font/germania_one"
  35. android:lineSpacingExtra="0sp"
  36. android:text="@string/gamestyle"
  37. android:textAlignment="center"
  38. android:textAllCaps="false"
  39. android:textColor="@android:color/black"
  40. android:textSize="24sp" />
  41. <RadioGroup
  42. android:id="@+id/playstyle"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:layout_below="@id/title_playstyle"
  46. android:layout_centerHorizontal="true"
  47. android:orientation="horizontal"
  48. android:paddingTop="5dp">
  49. <RadioButton
  50. android:id="@+id/sauspiel"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:checked="true"
  54. android:fontFamily="sans-serif-condensed"
  55. android:text="@string/sauspiel"
  56. android:textColor="@android:color/black"
  57. android:textSize="18sp" />
  58. <RadioButton
  59. android:id="@+id/wenz"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:layout_gravity="center"
  63. android:fontFamily="sans-serif-condensed"
  64. android:text="@string/wenz"
  65. android:textColor="@android:color/black"
  66. android:textSize="18sp" />
  67. <RadioButton
  68. android:id="@+id/solo"
  69. android:layout_width="wrap_content"
  70. android:layout_height="wrap_content"
  71. android:fontFamily="sans-serif-condensed"
  72. android:text="@string/solo"
  73. android:textColor="@android:color/black"
  74. android:textSize="18sp" />
  75. </RadioGroup>
  76. <TextView
  77. android:id="@+id/title_playcall"
  78. android:layout_width="match_parent"
  79. android:layout_height="wrap_content"
  80. android:layout_below="@+id/playstyle"
  81. android:layout_centerHorizontal="false"
  82. android:layout_marginTop="10dp"
  83. android:fontFamily="@font/germania_one"
  84. android:lineSpacingExtra="0sp"
  85. android:text="@string/call"
  86. android:textAlignment="center"
  87. android:textAllCaps="false"
  88. android:textColor="@android:color/black"
  89. android:textSize="24sp" />
  90. <RadioGroup
  91. android:id="@+id/calls"
  92. android:layout_width="wrap_content"
  93. android:layout_height="wrap_content"
  94. android:layout_below="@+id/title_playcall"
  95. android:layout_centerHorizontal="true"
  96. android:orientation="horizontal"
  97. android:paddingTop="5dp">
  98. <RadioButton
  99. android:id="@+id/eichel"
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. android:layout_weight="1"
  103. android:checked="true"
  104. android:drawableEnd="@drawable/eichel" />
  105. <RadioButton
  106. android:id="@+id/blatt"
  107. android:layout_width="wrap_content"
  108. android:layout_height="wrap_content"
  109. android:layout_gravity="center"
  110. android:layout_weight="1"
  111. android:drawableEnd="@drawable/blatt"
  112. android:fontFamily="sans-serif-condensed"
  113. android:textColor="@android:color/black"
  114. android:textSize="18sp" />
  115. <RadioButton
  116. android:id="@+id/schelle"
  117. android:layout_width="wrap_content"
  118. android:layout_height="wrap_content"
  119. android:layout_weight="1"
  120. android:drawableEnd="@drawable/schelle" />
  121. <RadioButton
  122. android:id="@+id/herz"
  123. android:layout_width="wrap_content"
  124. android:layout_height="wrap_content"
  125. android:layout_gravity="center"
  126. android:layout_weight="1"
  127. android:drawableEnd="@drawable/herz"
  128. android:fontFamily="sans-serif-condensed"
  129. android:textColor="@android:color/black"
  130. android:textSize="18sp" />
  131. </RadioGroup>
  132. <TextView
  133. android:id="@+id/title_soloplayer"
  134. android:layout_width="match_parent"
  135. android:layout_height="wrap_content"
  136. android:layout_below="@id/calls"
  137. android:layout_centerHorizontal="false"
  138. android:layout_marginTop="10dp"
  139. android:fontFamily="@font/germania_one"
  140. android:lineSpacingExtra="0sp"
  141. android:text="@string/soloPlayer"
  142. android:textAlignment="center"
  143. android:textAllCaps="false"
  144. android:textColor="@android:color/black"
  145. android:textSize="24sp" />
  146. <RadioGroup
  147. android:id="@+id/soloplay"
  148. android:layout_width="wrap_content"
  149. android:layout_height="wrap_content"
  150. android:layout_below="@+id/title_soloplayer"
  151. android:layout_centerHorizontal="true"
  152. android:orientation="horizontal"
  153. android:paddingTop="5dp">
  154. <RadioButton
  155. android:id="@+id/player1"
  156. android:layout_width="wrap_content"
  157. android:layout_height="wrap_content"
  158. android:layout_weight="1"
  159. android:checked="true"
  160. android:text="@string/Player1" />
  161. <RadioButton
  162. android:id="@+id/player2"
  163. android:layout_width="wrap_content"
  164. android:layout_height="wrap_content"
  165. android:layout_weight="1"
  166. android:text="@string/Player2" />
  167. <RadioButton
  168. android:id="@+id/player3"
  169. android:layout_width="wrap_content"
  170. android:layout_height="wrap_content"
  171. android:layout_weight="1"
  172. android:text="@string/Player3" />
  173. <RadioButton
  174. android:id="@+id/player4"
  175. android:layout_width="wrap_content"
  176. android:layout_height="wrap_content"
  177. android:layout_weight="1"
  178. android:text="@string/Player4" />
  179. </RadioGroup>
  180. <TextView
  181. android:id="@+id/title_choice"
  182. android:layout_width="match_parent"
  183. android:layout_height="wrap_content"
  184. android:layout_below="@id/soloplay"
  185. android:layout_centerHorizontal="true"
  186. android:layout_marginTop="20dp"
  187. android:fontFamily="@font/germania_one"
  188. android:lineSpacingExtra="0sp"
  189. android:text="@string/choice"
  190. android:textAlignment="center"
  191. android:textAllCaps="false"
  192. android:textColor="@android:color/black"
  193. android:textSize="24sp" />
  194. <TextView
  195. android:id="@+id/choice"
  196. android:layout_width="match_parent"
  197. android:layout_height="wrap_content"
  198. android:layout_below="@id/title_choice"
  199. android:layout_centerHorizontal="true"
  200. android:layout_marginTop="5dp"
  201. android:fontFamily="sans-serif-condensed"
  202. android:lineSpacingExtra="0sp"
  203. android:textAlignment="center"
  204. android:textAllCaps="false"
  205. android:textColor="@android:color/black"
  206. android:textSize="24sp" />
  207. <Button
  208. android:id="@+id/gameChoosed"
  209. style="?android:borderlessButtonStyle"
  210. android:layout_width="match_parent"
  211. android:layout_height="wrap_content"
  212. android:layout_alignParentBottom="true"
  213. android:layout_centerHorizontal="true"
  214. android:background="@android:color/holo_green_dark"
  215. android:fontFamily="@font/germania_one"
  216. android:text="@string/confirm"
  217. android:textColor="@android:color/black"
  218. android:textSize="24sp" />
  219. </RelativeLayout>
  220. </android.support.design.widget.CoordinatorLayout>