Created
September 7, 2018 12:08
-
-
Save ssaurel/1c10ea339cecc9325450d484b1c671a8 to your computer and use it in GitHub Desktop.
User Interface for the Reflex Game on the SSaurel's Channel
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"?> | |
<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