178 lines
8.0 KiB
XML
178 lines
8.0 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<LinearLayout
|
||
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:background="#00000000"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical"
|
||
|
|
>
|
||
|
|
<androidx.cardview.widget.CardView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:backgroundTint="@color/white">
|
||
|
|
|
||
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:padding="16dp">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/title"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="Add New Tax"
|
||
|
|
android:textSize="18sp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:fontFamily="@font/inter_500"
|
||
|
|
android:textColor="@color/black"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/closeButton"
|
||
|
|
android:layout_width="20dp"
|
||
|
|
android:layout_height="20dp"
|
||
|
|
android:src="@drawable/close_1"
|
||
|
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_marginTop="@dimen/_20dp"
|
||
|
|
android:id="@+id/firstrow"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
app:layout_constraintTop_toBottomOf="@id/title"
|
||
|
|
android:weightSum="2">
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputLayout
|
||
|
|
style="@style/CustomAutoCompleteTextView"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:layout_margin="5dp"
|
||
|
|
app:boxStrokeColor="@color/primary_blue"
|
||
|
|
app:hintTextColor="@color/primary_blue"
|
||
|
|
app:boxBackgroundColor="@color/white">
|
||
|
|
|
||
|
|
<AutoCompleteTextView
|
||
|
|
android:id="@+id/HomeAutoComplete"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:hint="Name"
|
||
|
|
android:textColor="@color/black"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:inputType="textNoSuggestions"
|
||
|
|
android:paddingVertical="15dp"/>
|
||
|
|
</com.google.android.material.textfield.TextInputLayout>
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputLayout
|
||
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:layout_margin="5dp"
|
||
|
|
app:boxBackgroundColor="@color/white"
|
||
|
|
|
||
|
|
app:hintAnimationEnabled="true"
|
||
|
|
app:boxStrokeColor="@color/primary_blue"
|
||
|
|
app:hintTextColor="@color/primary_blue"
|
||
|
|
|
||
|
|
android:hint="Tax">
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputEditText
|
||
|
|
android:id="@+id/Tax"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:background="@null"
|
||
|
|
android:textColor="@color/black"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:inputType="text"
|
||
|
|
android:maxLines="1"
|
||
|
|
android:padding="15dp" />
|
||
|
|
</com.google.android.material.textfield.TextInputLayout>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/secondrow"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
app:layout_constraintTop_toBottomOf="@id/firstrow"
|
||
|
|
android:weightSum="2">
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputLayout
|
||
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:layout_margin="5dp"
|
||
|
|
app:boxBackgroundColor="@color/white"
|
||
|
|
|
||
|
|
app:hintAnimationEnabled="true"
|
||
|
|
android:focusable="false"
|
||
|
|
app:boxStrokeColor="@color/primary_blue"
|
||
|
|
app:hintTextColor="@color/primary_blue"
|
||
|
|
app:endIconMode="custom"
|
||
|
|
app:endIconDrawable="@drawable/baseline_calendar_month_24"
|
||
|
|
android:hint="Effective Date">
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputEditText
|
||
|
|
android:id="@+id/DOB"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:background="@null"
|
||
|
|
android:focusable="false"
|
||
|
|
android:textColor="@color/black"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:inputType="text"
|
||
|
|
android:maxLines="1"
|
||
|
|
android:padding="15dp"/>
|
||
|
|
</com.google.android.material.textfield.TextInputLayout>
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputLayout
|
||
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
app:boxStrokeColor="@color/primary_blue"
|
||
|
|
app:hintTextColor="@color/primary_blue"
|
||
|
|
android:layout_margin="5dp"
|
||
|
|
app:boxBackgroundColor="@color/white"
|
||
|
|
|
||
|
|
app:hintAnimationEnabled="true"
|
||
|
|
|
||
|
|
android:hint="Ref No.">
|
||
|
|
|
||
|
|
<com.google.android.material.textfield.TextInputEditText
|
||
|
|
android:id="@+id/Refno"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:background="@null"
|
||
|
|
android:textColor="@color/black"
|
||
|
|
android:fontFamily="@font/inter_600"
|
||
|
|
android:inputType="text"
|
||
|
|
android:maxLines="1"
|
||
|
|
android:padding="15dp"/>
|
||
|
|
</com.google.android.material.textfield.TextInputLayout>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/submit"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:paddingHorizontal="@dimen/_20dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="Submit"
|
||
|
|
android:textSize="16sp"
|
||
|
|
android:fontFamily="@font/inter_500"
|
||
|
|
android:textAllCaps="false"
|
||
|
|
android:layout_margin="10dp"
|
||
|
|
android:backgroundTint="#52C41A"
|
||
|
|
android:textColor="#FFFFFF"
|
||
|
|
app:layout_constraintTop_toBottomOf="@id/secondrow"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
||
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
</androidx.cardview.widget.CardView>
|
||
|
|
</LinearLayout>
|