Skip to content

Instantly share code, notes, and snippets.

@ssaurel
Created September 7, 2018 12:08
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 ssaurel/1c10ea339cecc9325450d484b1c671a8 to your computer and use it in GitHub Desktop.
Save ssaurel/1c10ea339cecc9325450d484b1c671a8 to your computer and use it in GitHub Desktop.
User Interface for the Reflex Game on the SSaurel's Channel
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bgColor"
>
<LinearLayout
android:id="@+id/touchArea"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="50dp"
android:layout_marginLeft="50dp"
android:layout_marginRight="50dp"
android:layout_marginTop="50dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:background="@drawable/dotted_bg"
android:visibility="gone"/>
<ImageView
android:id="@+id/targetIv"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/target"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:visibility="gone"/>
<TextView
android:id="@+id/msgTv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/start_msg"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:textSize="24sp"
android:textStyle="bold"
android:gravity="center"
android:paddingRight="30dp"
android:paddingLeft="30dp"
android:textColor="@color/colorPrimaryDark"/>
</android.support.constraint.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment