Skip to content

Instantly share code, notes, and snippets.

@omayib
Created March 30, 2017 03:13
Show Gist options
  • Save omayib/080505b505283a0c9bd5845de0f31967 to your computer and use it in GitHub Desktop.
Save omayib/080505b505283a0c9bd5845de0f31967 to your computer and use it in GitHub Desktop.
score board for android course challange. user can type the two players name
<?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:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="@dimen/activity_horizontal_margin">
<TextView
android:text="Player 1"
android:layout_marginTop="8dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView7" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:ems="10"
android:id="@+id/editText"
tools:text="Jarwo Smith" />
<TextView
android:text="Player 2"
android:layout_marginTop="8dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView8" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:ems="10"
android:id="@+id/editText2"
tools:text="Susanti A." />
<Button
android:text="next"
android:layout_marginTop="8dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/button4" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment