188 lines
5.9 KiB
XML
188 lines
5.9 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
|
android:background="@android:color/white"
|
||
|
|
android:padding="16dp"
|
||
|
|
android:drawableTop="?android:attr/dialogTitle">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvTitle"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="Employee Access"
|
||
|
|
android:textSize="18sp"
|
||
|
|
android:fontFamily="@font/inter_500"
|
||
|
|
android:textColor="@color/black"
|
||
|
|
android:layout_marginTop="10dp"/>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<!-- Employee Selection Spinner -->
|
||
|
|
<com.google.android.material.textfield.TextInputLayout
|
||
|
|
android:id="@+id/EmployeeAccessNameOnl1"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="12dp"
|
||
|
|
android:layout_below="@+id/tvTitle"
|
||
|
|
|
||
|
|
app:boxBackgroundColor="@color/white">
|
||
|
|
|
||
|
|
<AutoCompleteTextView
|
||
|
|
android:id="@+id/EmployeeAccessNameOnly"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:fontFamily="@font/inter_500"
|
||
|
|
android:hint="Select Employee"
|
||
|
|
android:textColor="@color/black"
|
||
|
|
android:inputType="textNoSuggestions"
|
||
|
|
android:paddingVertical="15dp"/>
|
||
|
|
</com.google.android.material.textfield.TextInputLayout>
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/etSearch"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_below="@id/EmployeeAccessNameOnl1"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:background="@drawable/search_background"
|
||
|
|
|
||
|
|
android:elevation="4dp"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
android:layout_marginRight="8dp"
|
||
|
|
android:layout_marginLeft="80dp">
|
||
|
|
|
||
|
|
<EditText
|
||
|
|
android:id="@+id/searchEditText"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:hint="Search by Access name"
|
||
|
|
android:textSize="14sp"
|
||
|
|
android:padding="10dp"
|
||
|
|
|
||
|
|
android:background="@android:color/transparent"
|
||
|
|
android:drawablePadding="8dp"
|
||
|
|
android:inputType="text"
|
||
|
|
android:singleLine="true" />
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/searchIcon"
|
||
|
|
android:layout_width="30dp"
|
||
|
|
android:layout_height="30dp"
|
||
|
|
android:src="@drawable/search_mob_screen"
|
||
|
|
android:layout_gravity="center_vertical"
|
||
|
|
android:padding="4dp"/>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/titles"
|
||
|
|
android:layout_below="@+id/etSearch"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:layout_marginTop="20dp"
|
||
|
|
android:background="#E0E0E0"
|
||
|
|
android:padding="8dp"
|
||
|
|
android:gravity="center_vertical">
|
||
|
|
|
||
|
|
<!-- Select All Checkbox -->
|
||
|
|
<CheckBox
|
||
|
|
android:id="@+id/selectAll"
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:layout_height="wrap_content" />
|
||
|
|
|
||
|
|
<!-- Serial Number Title -->
|
||
|
|
<TextView
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="SL"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:textSize="14sp"
|
||
|
|
android:gravity="center" />
|
||
|
|
|
||
|
|
<!-- Access Name Title -->
|
||
|
|
<TextView
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="ACCESS NAME"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:textSize="14sp" />
|
||
|
|
|
||
|
|
<!-- ADD Title -->
|
||
|
|
<TextView
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="ADD"
|
||
|
|
android:gravity="center"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:textSize="14sp" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="EDIT"
|
||
|
|
android:gravity="center"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:textSize="14sp" />
|
||
|
|
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="VIEW"
|
||
|
|
android:gravity="center"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:textSize="14sp" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="DEL"
|
||
|
|
android:gravity="center"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:textSize="14sp" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<!-- RecyclerView for Access List -->
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:id="@+id/recycler"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_below="@id/titles"
|
||
|
|
android:layout_marginBottom="60dp"
|
||
|
|
android:layout_marginTop="10dp"/>
|
||
|
|
|
||
|
|
<ImageView
|
||
|
|
android:id="@+id/nodata"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_centerHorizontal="true"
|
||
|
|
android:visibility="gone"
|
||
|
|
android:layout_marginTop="20dp"
|
||
|
|
android:layout_below="@id/titles"
|
||
|
|
android:src="@drawable/nodatafound"/>
|
||
|
|
|
||
|
|
|
||
|
|
<Button
|
||
|
|
|
||
|
|
android:id="@+id/updatdata"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="50dp"
|
||
|
|
android:text="Submit"
|
||
|
|
android:textColor="@android:color/white"
|
||
|
|
android:backgroundTint="@color/green"
|
||
|
|
android:layout_alignParentBottom="true"
|
||
|
|
|
||
|
|
android:layout_marginTop="50dp"/>
|
||
|
|
</RelativeLayout>
|