Skip to content

Instantly share code, notes, and snippets.

@mayurbhangale
Created September 10, 2016 12:06
Show Gist options
  • Select an option

  • Save mayurbhangale/4e43e786709d86de5412ba84b14e0742 to your computer and use it in GitHub Desktop.

Select an option

Save mayurbhangale/4e43e786709d86de5412ba84b14e0742 to your computer and use it in GitHub Desktop.
<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" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".GhostActivity"
android:id="@+id/ghost">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="48sp"
android:id="@+id/ghostText"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Starting game"
android:id="@+id/gameStatus"
android:layout_below="@+id/ghostText"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Challenge"
android:onClick="challenge"
android:id="@+id/challengeButton"
android:layout_below="@+id/gameStatus"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Reset"
android:onClick="onStart"
android:id="@+id/resetButton"
android:layout_below="@+id/gameStatus"
android:layout_toRightOf="@+id/challengeButton"
android:layout_toEndOf="@+id/challengeButton" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment