Commit 059fb678 authored by Lukas Bersinger's avatar Lukas Bersinger
Browse files

start creating add task layout

parent dde4f3d9
<vector android:height="24dp" android:tint="#FFFFFF"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M20,3h-1L19,1h-2v2L7,3L7,1L5,1v2L4,3c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,5c0,-1.1 -0.9,-2 -2,-2zM20,21L4,21L4,8h16v13z"/>
</vector>
......@@ -6,4 +6,71 @@
android:layout_height="match_parent"
tools:context=".activities.AddTaskActivity">
<EditText
android:id="@+id/fldTaskName"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:ems="10"
android:importantForAutofill="no"
android:inputType="textPersonName"
android:focusable="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/lblTaskName" />
<TextView
android:id="@+id/lblTaskName"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:text="@string/lblTaskName"
android:labelFor="@id/fldTaskName"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/lblDueDate"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:labelFor="@id/fldDueDate"
android:text="@string/lblDueDate"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/fldTaskName" />
<EditText
android:id="@+id/fldDueDate"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:clickable="true"
android:ems="10"
android:focusable="true"
android:inputType="date"
app:layout_constraintEnd_toStartOf="@+id/btnDatepicker"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/lblDueDate" />
<ImageButton
android:id="@+id/btnDatepicker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:backgroundTint="@color/design_default_color_background"
android:tint="@color/colorPrimary"
app:layout_constraintBottom_toBottomOf="@+id/fldDueDate"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/lblDueDate"
app:srcCompat="@drawable/ic_baseline_calendar_today_24" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -2,4 +2,6 @@
<string name="app_name">TaskTracker</string>
<string name="txtTaskListEmpty">Alles erledigt</string>
<string name="lblTaskName">Name</string>
<string name="lblDueDate">Fälligkeitsdatum</string>
</resources>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment