Guest User

Untitled

a guest
Jun 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. <LinearLayout
  2. xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="horizontal">
  7.  
  8.  
  9. <LinearLayout
  10. android:layout_weight="1"
  11. android:layout_width="0dp"
  12. android:layout_height="match_parent"
  13. android:orientation="vertical"
  14. tools:context=".MainActivity" />
  15.  
  16. <TextView
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:gravity="center_horizontal"
  20. android:padding="4dp"
  21. android:text="Team A" />
  22.  
  23. <TextView
  24. android:id="@+id/team_a_score"
  25. android:layout_width="match_parent"
  26. android:layout_height="wrap_content"
  27. android:gravity="center_horizontal"
  28. android:padding="4dp"
  29. android:text="0" />
  30.  
  31. <Button
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:layout_margin="8dp"
  35. android:onClick="addThreeForTeamA"
  36. android:text="+3 Points" />
  37.  
  38. <Button
  39. android:layout_width="match_parent"
  40. android:layout_height="wrap_content"
  41. android:layout_margin="8dp"
  42. android:onClick="addTwoForTeamA"
  43. android:text="+2 Points" />
  44.  
  45. <Button
  46. android:layout_width="match_parent"
  47. android:layout_height="wrap_content"
  48. android:layout_margin="8dp"
  49. android:onClick="addOneForTeamA"
  50. android:text="Free throw" />
  51.  
  52.  
  53. <LinearLayout
  54. android:layout_weight="1"
  55. android:layout_width="0dp"
  56. android:layout_height="match_parent"
  57. android:orientation="vertical"
  58. tools:context=".MainActivity" />
  59.  
  60. <TextView
  61. android:layout_width="match_parent"
  62. android:layout_height="wrap_content"
  63. android:gravity="center_horizontal"
  64. android:padding="4dp"
  65. android:text="Team B" />
  66.  
  67. <TextView
  68. android:id="@+id/team_b_score"
  69. android:layout_width="match_parent"
  70. android:layout_height="wrap_content"
  71. android:gravity="center_horizontal"
  72. android:padding="4dp"
  73. android:text="0" />
  74.  
  75. <Button
  76. android:layout_width="match_parent"
  77. android:layout_height="wrap_content"
  78. android:layout_margin="8dp"
  79. android:onClick="addThreeForTeamA"
  80. android:text="+3 Points" />
  81.  
  82. <Button
  83. android:layout_width="match_parent"
  84. android:layout_height="wrap_content"
  85. android:layout_margin="8dp"
  86. android:onClick="addTwoForTeamA"
  87. android:text="+2 Points" />
  88.  
  89. <Button
  90. android:layout_width="match_parent"
  91. android:layout_height="wrap_content"
  92. android:layout_margin="8dp"
  93. android:onClick="addOneForTeamA"
  94. android:text="Free throw" />
  95.  
  96. </LinearLayout>}
Add Comment
Please, Sign In to add comment