activity_sequence_of_activities.xml 4.47 KB
<?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:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.risiko.risiko.activity.SequenceOfActivities">

    <include layout="@layout/toolbar"/>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:background="@color/colorWhite"
        android:padding="10dp"
        android:layout_marginBottom="15dp"
        android:layout_marginHorizontal="15dp"
        android:layout_marginTop="70dp">


    <TextView
        android:layout_gravity="center"
        android:id="@+id/tv_sequence_headline"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/sequence_of_activities"
        android:textStyle="bold"
        android:textSize="25dp"
        android:textColor="@color/colorPrimaryDark"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        android:layout_marginTop="25dp"/>

    <TextView
        android:layout_marginTop="20dp"
        android:textAlignment="center"
        android:id="@+id/tv_sequence_description"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@id/tv_sequence_headline"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/sequence_description"/>

    <LinearLayout
        android:layout_margin="10dp"
        android:padding="10dp"
        android:background="@color/colorLightGray"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <TextView
            android:layout_marginEnd="20dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="17sp"
            android:textStyle="bold"
            android:text="@string/chose_activity" />

        <Spinner
            android:id="@+id/spinner_activity1"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />

    </LinearLayout>

        <LinearLayout
            android:layout_margin="10dp"
            android:padding="10dp"
            android:background="@color/colorLightGray"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

            <TextView
                android:layout_marginEnd="20dp"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="17sp"
                android:textStyle="bold"
                android:text="@string/chose_activity" />

            <Spinner
                android:id="@+id/spinner_activity2"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" />

        </LinearLayout>


        <LinearLayout
            android:layout_margin="10dp"
            android:padding="10dp"
            android:background="@color/colorLightGray"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

            <TextView
                android:layout_marginEnd="20dp"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="17sp"
                android:textStyle="bold"
                android:text="@string/chose_activity" />

            <Spinner
                android:id="@+id/spinner_activity3"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" />

        </LinearLayout>

        <Button
            android:id="@+id/btn_generate_report"
            android:layout_marginVertical="50dp"
            android:layout_gravity="center"
            android:layout_width="200dp"
            android:layout_height="wrap_content"
            android:text="@string/generate_report"/>

    </LinearLayout>






</android.support.constraint.ConstraintLayout>