Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mohanad0/4a0cb02a5846d236d43e461af0b3bde2 to your computer and use it in GitHub Desktop.
Save Mohanad0/4a0cb02a5846d236d43e461af0b3bde2 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.example.android.courtcounter.MainActivity">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Team A"
android:gravity="center_horizontal"
android:padding="4dp"/>
<TextView
android:id="@+id/team_a_score"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="0"
android:gravity="center_horizontal"
android:padding="4dp"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="+3 Points"
android:layout_margin="8dp"
android:onClick="addThreeTeamA"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="+2 Points"
android:layout_margin="8dp"
android:onClick="addTowTeamA"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Free Throw"
android:layout_margin="8dp"
android:onClick="addOneTeamA"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment