Hangman/app/src/main/res/layout/activity_main.xml
2018-04-17 00:05:03 +02:00

69 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
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:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="net.DeltaWings.Android.Hangman.GameActivity"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="81dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/appBarLayout"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.507"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/appBarLayout">
<ImageView
android:id="@+id/imageView"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_below="@+id/appBarLayout"
android:adjustViewBounds="false"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toBottomOf="@+id/appBarLayout"
app:srcCompat="@mipmap/logo"/>
<Button
android:id="@+id/singleplayerButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="64dp"
android:layout_weight="1"
android:textColor="?android:textColorPrimaryInverse"
android:background="@drawable/button"
android:text="@string/singleplayer"
android:textAppearance="@style/TextAppearance.AppCompat"
app:layout_constraintTop_toBottomOf="@+id/imageView"
android:stateListAnimator="@null"
tools:layout_editor_absoluteX="142dp"/>
<Button
android:id="@+id/testsButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/singleplayerButton"
android:layout_centerHorizontal="true"
android:layout_marginTop="64dp"
android:layout_weight="1"
android:background="@drawable/button"
android:textColor="?android:textColorPrimaryInverse"
android:text="Tests"
android:textAppearance="@style/TextAppearance.AppCompat"
app:layout_constraintTop_toBottomOf="@+id/singleplayerButton"
tools:layout_editor_absoluteX="146dp"/>
</LinearLayout>
</RelativeLayout>