Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal">
- <LinearLayout
- android:layout_weight="1"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:orientation="vertical"
- tools:context=".MainActivity" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_horizontal"
- android:padding="4dp"
- android:text="Team A" />
- <TextView
- android:id="@+id/team_a_score"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_horizontal"
- android:padding="4dp"
- android:text="0" />
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="8dp"
- android:onClick="addThreeForTeamA"
- android:text="+3 Points" />
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="8dp"
- android:onClick="addTwoForTeamA"
- android:text="+2 Points" />
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="8dp"
- android:onClick="addOneForTeamA"
- android:text="Free throw" />
- <LinearLayout
- android:layout_weight="1"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:orientation="vertical"
- tools:context=".MainActivity" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_horizontal"
- android:padding="4dp"
- android:text="Team B" />
- <TextView
- android:id="@+id/team_b_score"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_horizontal"
- android:padding="4dp"
- android:text="0" />
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="8dp"
- android:onClick="addThreeForTeamA"
- android:text="+3 Points" />
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="8dp"
- android:onClick="addTwoForTeamA"
- android:text="+2 Points" />
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="8dp"
- android:onClick="addOneForTeamA"
- android:text="Free throw" />
- </LinearLayout>}
Add Comment
Please, Sign In to add comment