<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:wheel="http://schemas.android.com/apk/res-auto"
                xmlns:tools="http://schemas.android.com/tools"
                android:orientation="vertical"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

    <androidx.appcompat.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_alignParentTop="true"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:minHeight="?attr/actionBarSize"
            android:theme="?attr/actionBarStyle">

        <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent">

            <TextView android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="@string/ShareActivity_share_with"
                      android:textColor="@color/signal_text_primary"
                      android:textSize="20sp"
                      android:layout_alignParentStart="true"
                      android:layout_centerVertical="true"
                      android:layout_toStartOf="@+id/search_action"/>

            <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/search_action"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                wheel:srcCompat="@drawable/ic_search_24"
                android:tint="@color/signal_icon_tint_primary"
                android:layout_alignParentEnd="true"
                android:layout_centerVertical="true"/>

        </RelativeLayout>

    </androidx.appcompat.widget.Toolbar>


    <fragment android:id="@+id/contact_selection_list_fragment"
              android:layout_below="@id/toolbar"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:name="org.thoughtcrime.securesms.ContactSelectionListFragment" />

    <org.thoughtcrime.securesms.components.SearchToolbar
            android:id="@+id/search_toolbar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:elevation="4dp"
            android:visibility="invisible"
            tools:visibility="invisible"/>

</RelativeLayout>
