mirror of
https://github.com/hmalik144/DaysLeft.git
synced 2025-12-10 03:05:29 +00:00
# migrated to androidx - update to mvvm - creation of viewmodels and factories - dependency injection with kodein - app class created with modules - creation of firebase/live data class (put out fires from migration)
121 lines
4.4 KiB
XML
121 lines
4.4 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"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
|
tools:context=".AddItems.AddTaskFragment">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_centerInParent="true"
|
|
android:id="@+id/centre_view">
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_one"
|
|
style="@style/cardview_theme"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16sp"
|
|
app:cardBackgroundColor="@color/two">
|
|
|
|
<Spinner
|
|
android:id="@+id/spinner_one"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingLeft="16dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingBottom="12dp"
|
|
android:popupBackground="@color/two"
|
|
tools:listitem="@android:layout/test_list_item">
|
|
|
|
</Spinner>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_two"
|
|
style="@style/cardview_theme"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16sp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="8dp"
|
|
android:text="$" />
|
|
|
|
<EditText
|
|
android:id="@+id/pay_rate"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:inputType="numberDecimal"
|
|
android:hint="Insert Pay Rate"
|
|
android:paddingTop="12dp"
|
|
android:paddingBottom="12dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/unit_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="8dp"
|
|
tools:text="per hour" />
|
|
</LinearLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_three"
|
|
style="@style/cardview_theme"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:cardBackgroundColor="@color/two">
|
|
|
|
<Spinner
|
|
android:id="@+id/spinner_Two"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingLeft="16dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingBottom="12dp"
|
|
android:popupBackground="@color/two"
|
|
tools:listitem="@android:layout/test_list_item">
|
|
|
|
</Spinner>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageButton
|
|
android:id="@+id/search_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="@drawable/yes_button"
|
|
android:paddingLeft="15dp"
|
|
android:paddingRight="15dp"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/checkmark"
|
|
android:tint="#2b452d" />
|
|
|
|
|
|
</RelativeLayout> |