Last active
November 15, 2018 17:56
-
-
Save timtsj/15626d083ef254d24de5768d1612007b to your computer and use it in GitHub Desktop.
CourtCounter in JavaRush
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout 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" | |
tools:context=".MainActivity"> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentTop="true" | |
android:layout_marginLeft="24dp" | |
android:layout_marginRight="24dp" | |
android:orientation="vertical" | |
tools:context=".MainActivity"> | |
<TextView | |
android:id="@+id/team_a" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal" | |
android:layout_marginTop="16dp" | |
android:layout_marginBottom="16dp" | |
android:fontFamily="sans-serif-medium" | |
android:text="Team A" | |
android:textColor="#616161" | |
android:textSize="14sp" /> | |
<TextView | |
android:id="@+id/goal" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal" | |
android:fontFamily="sans-serif-light" | |
android:text="0" | |
android:textColor="#000000" | |
android:textSize="56sp" /> | |
<Button | |
android:id="@+id/three_points" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_marginTop="24dp" | |
android:layout_marginBottom="8dp" | |
android:onClick="threeScore" | |
android:text="+3 Points" /> | |
<Button | |
android:id="@+id/two_points" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:onClick="twoScore" | |
android:text="+2 Points" /> | |
<Button | |
android:id="@+id/free_points" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="8dp" | |
android:onClick="freeScore" | |
android:text="free throw" /> | |
</LinearLayout> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="1dp" | |
android:layout_height="320dp" | |
android:layout_centerHorizontal="true" | |
android:background="@android:color/darker_gray" | |
tools:context=".MainActivity"> | |
</LinearLayout> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentRight="true" | |
android:layout_marginRight="24dp" | |
android:layout_marginLeft="24dp" | |
android:orientation="vertical" | |
tools:context=".MainActivity"> | |
<TextView | |
android:id="@+id/team_b" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal" | |
android:layout_marginTop="16dp" | |
android:layout_marginBottom="16dp" | |
android:fontFamily="sans-serif-medium" | |
android:text="Team B" | |
android:textColor="#616161" | |
android:textSize="14sp" /> | |
<TextView | |
android:id="@+id/goal_b" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal" | |
android:fontFamily="sans-serif-light" | |
android:text="0" | |
android:textColor="#000000" | |
android:textSize="56sp" /> | |
<Button | |
android:id="@+id/three_points_b" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="24dp" | |
android:layout_marginBottom="8dp" | |
android:onClick="threeScoreB" | |
android:text="+3 Points" /> | |
<Button | |
android:id="@+id/two_points_b" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:onClick="twoScoreB" | |
android:text="+2 Points" /> | |
<Button | |
android:id="@+id/free_points_b" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="8dp" | |
android:layout_marginBottom="8dp" | |
android:onClick="freeScoreB" | |
android:text="free throw" /> | |
</LinearLayout> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" | |
android:layout_centerHorizontal="true" | |
android:layout_marginBottom="32dp" | |
android:orientation="horizontal"> | |
<Button | |
android:id="@+id/reset_b" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:onClick="resetScoreB" | |
android:text="Reset" /> | |
</LinearLayout> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment