82 lines
2.8 KiB
XML
82 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<com.google.android.flexbox.FlexboxLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/colorLight"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
app:flexDirection="column"
|
|
app:justifyContent="space_around"
|
|
app:alignItems="center"
|
|
tools:context="ui.MainActivity">
|
|
|
|
<!-- Header -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp">
|
|
|
|
<ImageButton
|
|
android:id="@+id/settings_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:src="@android:drawable/ic_menu_manage">
|
|
</ImageButton>
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- TaskView -->
|
|
<LinearLayout
|
|
android:id="@+id/tasks"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/drop_shadow"
|
|
android:orientation="vertical"
|
|
android:padding="16dp"
|
|
app:layout_flexGrow="1">
|
|
</LinearLayout>
|
|
|
|
<!-- Buttons at bottom -->
|
|
<com.google.android.flexbox.FlexboxLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp"
|
|
app:justifyContent="space_around">
|
|
|
|
<Button
|
|
android:id="@+id/resetButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_flexBasisPercent="45%"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:background="@drawable/button_secondary"
|
|
android:onClick="onResetTaskButtonClick"
|
|
android:text="@string/task_reset"
|
|
android:textColor="#7c7656">
|
|
</Button>
|
|
|
|
<Button
|
|
android:id="@+id/addButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_flexBasisPercent="45%"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:background="@drawable/button_primary"
|
|
android:onClick="onNewTaskButtonClick"
|
|
android:text="@string/task_new"
|
|
android:textColor="#7c7656">
|
|
</Button>
|
|
|
|
</com.google.android.flexbox.FlexboxLayout>
|
|
|
|
</com.google.android.flexbox.FlexboxLayout>
|