made chat more user frendly

This commit is contained in:
Alex
2026-04-09 19:47:43 -06:00
parent b9b74d2447
commit fea01ba8ec
4 changed files with 218 additions and 59 deletions

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/chatDrawerLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -125,29 +126,101 @@
</LinearLayout>
<LinearLayout
<androidx.core.widget.NestedScrollView
android:id="@+id/chatListDrawer"
android:layout_width="260dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:orientation="vertical"
android:background="@color/primary_dark"
android:padding="16dp">
android:background="@color/primary_dark">
<TextView
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Active Chats"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold"
android:layout_marginBottom="16dp"/>
android:orientation="vertical"
android:paddingTop="24dp">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvChatList"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<LinearLayout
android:id="@+id/headerActiveChats"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:clickable="true"
android:focusable="true"
android:background="?attr/selectableItemBackground"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:paddingBottom="8dp">
</LinearLayout>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="ACTIVE CHATS"
android:textColor="@color/text_light"
android:textSize="11sp"
android:letterSpacing="0.15"
android:textStyle="bold"/>
<ImageView
android:id="@+id/ivActiveChevron"
android:layout_width="20dp"
android:layout_height="20dp"
android:src="@android:drawable/arrow_up_float"
app:tint="@color/text_light"/>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvActiveChats"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false"
android:layout_marginBottom="16dp"
android:paddingStart="8dp"
android:paddingEnd="8dp"/>
<LinearLayout
android:id="@+id/headerClosedChats"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:clickable="true"
android:focusable="true"
android:background="?attr/selectableItemBackground"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:paddingTop="8dp"
android:paddingBottom="8dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="CLOSED CHATS"
android:textColor="@color/text_light"
android:textSize="11sp"
android:letterSpacing="0.15"
android:textStyle="bold"/>
<ImageView
android:id="@+id/ivClosedChevron"
android:layout_width="20dp"
android:layout_height="20dp"
android:src="@android:drawable/arrow_down_float"
app:tint="@color/text_light"/>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvClosedChats"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false"
android:visibility="gone"
android:paddingStart="8dp"
android:paddingEnd="8dp"/>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.drawerlayout.widget.DrawerLayout>