<?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:layout_height="match_parent"
    android:orientation="vertical">

    <androidx.appcompat.widget.Toolbar android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="@color/brand_primary"
        app:titleTextColor="@color/white"/>

    <LinearLayout
        android:layout_width="match_parent" android:layout_height="wrap_content"
        android:orientation="vertical"
        android:padding="12dp">
        <EditText android:id="@+id/etGroupName"
            android:layout_width="match_parent" android:layout_height="wrap_content"
            android:hint="Group name"
            android:inputType="textCapWords"
            android:maxLength="80"/>

        <LinearLayout
            android:layout_width="match_parent" android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:paddingTop="8dp">
            <EditText android:id="@+id/etAddPhone"
                android:layout_width="0dp" android:layout_weight="1"
                android:layout_height="wrap_content"
                android:hint="Add by phone (+91…)"
                android:inputType="phone"/>
            <Button android:id="@+id/btnAddPhone"
                android:layout_width="wrap_content" android:layout_height="wrap_content"
                android:text="Add"/>
        </LinearLayout>

        <TextView android:id="@+id/tvCount"
            android:layout_width="match_parent" android:layout_height="wrap_content"
            android:paddingTop="8dp"
            android:textStyle="bold"
            android:text="0 selected"/>
    </LinearLayout>

    <androidx.recyclerview.widget.RecyclerView android:id="@+id/rv"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"/>

    <Button android:id="@+id/btnCreate"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="12dp"
        android:text="Create group"/>
</LinearLayout>
