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.

main_game_layout.xml 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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=".MainGameActivity">
  9. <TextView
  10. android:id="@+id/title_game"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:layout_centerHorizontal="true"
  14. android:layout_marginTop="10dp"
  15. android:fontFamily="@font/germania_one"
  16. android:lineSpacingExtra="0sp"
  17. android:text="TEST"
  18. android:textAlignment="center"
  19. android:textAllCaps="false"
  20. android:textColor="@android:color/black"
  21. android:textSize="36sp" />
  22. <RelativeLayout
  23. android:id="@+id/realtivelayout_game"
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:gravity="center">
  27. <TableLayout
  28. android:id="@+id/table"
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent"
  31. android:layout_centerInParent="true"
  32. android:gravity="center"
  33. android:stretchColumns="1">
  34. <TableRow
  35. android:layout_width="match_parent"
  36. android:layout_height="match_parent"
  37. android:gravity="center_horizontal">
  38. <Button
  39. android:id="@+id/p1_game"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:fontFamily="sans-serif-condensed"
  43. android:textColor="@android:color/black"
  44. android:textSize="18sp" />
  45. </TableRow>
  46. <TableRow
  47. android:layout_width="match_parent"
  48. android:layout_height="match_parent"
  49. android:layout_marginBottom="20dp"
  50. android:gravity="center">
  51. <TextView
  52. android:id="@+id/p1_points"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:fontFamily="@font/germania_one"
  56. android:text="@string/points"
  57. android:textAlignment="viewStart"
  58. android:textColor="@android:color/black"
  59. android:textSize="14sp" />
  60. </TableRow>
  61. <TableRow
  62. android:layout_width="match_parent"
  63. android:layout_height="match_parent">
  64. <Button
  65. android:id="@+id/p4_game"
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:layout_marginStart="10dp"
  69. android:fontFamily="sans-serif-condensed"
  70. android:textColor="@android:color/black"
  71. android:textSize="18sp" />
  72. <Space
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content" />
  75. <Button
  76. android:id="@+id/p2_game"
  77. android:layout_width="wrap_content"
  78. android:layout_height="wrap_content"
  79. android:layout_marginEnd="10dp"
  80. android:fontFamily="sans-serif-condensed"
  81. android:textColor="@android:color/black"
  82. android:textSize="18sp" />
  83. </TableRow>
  84. <TableRow
  85. android:layout_width="match_parent"
  86. android:layout_height="match_parent"
  87. android:layout_marginBottom="20dp"
  88. android:gravity="center">
  89. <TextView
  90. android:id="@+id/p4_points"
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:layout_marginStart="10dp"
  94. android:fontFamily="@font/germania_one"
  95. android:text="@string/points"
  96. android:textAlignment="viewStart"
  97. android:textColor="@android:color/black"
  98. android:textSize="14sp" />
  99. <Space
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content" />
  102. <TextView
  103. android:id="@+id/p2_points"
  104. android:layout_width="wrap_content"
  105. android:layout_height="wrap_content"
  106. android:fontFamily="@font/germania_one"
  107. android:text="@string/points"
  108. android:textAlignment="viewStart"
  109. android:textColor="@android:color/black"
  110. android:textSize="14sp" />
  111. </TableRow>
  112. <TableRow
  113. android:layout_width="match_parent"
  114. android:layout_height="match_parent"
  115. android:gravity="center_horizontal">
  116. <Button
  117. android:id="@+id/p3_game"
  118. android:layout_width="wrap_content"
  119. android:layout_height="wrap_content"
  120. android:fontFamily="sans-serif-condensed"
  121. android:textColor="@android:color/black"
  122. android:textSize="18sp" />
  123. </TableRow>
  124. <TableRow
  125. android:layout_width="match_parent"
  126. android:layout_height="match_parent"
  127. android:gravity="center">
  128. <TextView
  129. android:id="@+id/p3_points"
  130. android:layout_width="wrap_content"
  131. android:layout_height="wrap_content"
  132. android:fontFamily="@font/germania_one"
  133. android:text="@string/points"
  134. android:textAlignment="viewStart"
  135. android:textColor="@android:color/black"
  136. android:textSize="14sp" />
  137. </TableRow>
  138. </TableLayout>
  139. <Button
  140. android:id="@+id/testButton"
  141. style="?android:borderlessButtonStyle"
  142. android:layout_width="match_parent"
  143. android:layout_height="wrap_content"
  144. android:layout_alignParentBottom="true"
  145. android:layout_centerHorizontal="true"
  146. android:background="@android:color/holo_green_dark"
  147. android:fontFamily="@font/germania_one"
  148. android:text="Test Button"
  149. android:textColor="@android:color/black"
  150. android:textSize="24sp" />
  151. </RelativeLayout>
  152. </android.support.design.widget.CoordinatorLayout>