activity_main_menu.xml 2.55 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.MainMenu">

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


    <LinearLayout
        android:layout_marginTop="?attr/actionBarSize"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:gravity="center_horizontal">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/colorPrimaryDark"
            android:text="Hovedmeny"
            android:textSize="30sp"
            android:textStyle="bold"
            android:layout_margin="35dp"/>

        <Button
            android:background="@color/colorWhite"
            android:id="@+id/btn_to_activitylist"
            android:layout_width="300dp"
            android:layout_height="wrap_content"
            android:text="Liste over aktiviteter"
            android:padding="10dp"
            android:layout_margin="10dp"
            android:drawableLeft="@drawable/ic_list" />


        <Button
            android:background="@color/colorWhite"
            android:id="@+id/btn_to_sequense_of_activities"
            android:layout_width="300dp"
            android:layout_height="wrap_content"
            android:text="Sekvens av aktiviteter"
            android:padding="10dp"
            android:layout_margin="10dp"
            android:drawableLeft="@drawable/ic_sequence"/>

        <Button
            android:background="@color/colorWhite"
            android:id="@+id/btn_to_events"
            android:layout_width="300dp"
            android:layout_height="wrap_content"
            android:text="Hendelser"
            android:padding="10dp"
            android:layout_margin="10dp"
            android:drawableLeft="@drawable/ic_incident"/>

        <Button
            android:background="@color/colorWhite"
            android:id="@+id/btn_to_new_event"
            android:layout_width="300dp"
            android:layout_height="wrap_content"
            android:text="Ny hendelse"
            android:padding="10dp"
            android:layout_margin="10dp"
            android:drawableLeft="@drawable/ic_add"/>

    </LinearLayout>

</android.support.constraint.ConstraintLayout>