mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-20 23:17:29 +00:00
77 lines
3.4 KiB
XML
77 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@id/container"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<android.support.v7.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:background="?attr/conversation_list_toolbar_background"
|
|
app:contentInsetStart="14dp"
|
|
app:contentInsetLeft="14dp"
|
|
android:elevation="4dp"
|
|
android:theme="?attr/actionBarStyle">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<ImageView android:id="@+id/toolbar_icon"
|
|
android:layout_width="36dp"
|
|
android:layout_height="36dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginStart="8dp"
|
|
android:src="@drawable/icon_transparent"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"/>
|
|
|
|
<TextView android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/app_name"
|
|
android:textColor="@color/white"
|
|
android:textSize="25sp"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toLeftOf="@+id/search_action"
|
|
android:layout_toStartOf="@+id/search_action"
|
|
android:layout_marginStart="66dp"
|
|
android:layout_marginLeft="66dp"/>
|
|
|
|
<ImageView android:id="@+id/search_action"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_search_white_24dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingEnd="16dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</android.support.v7.widget.Toolbar>
|
|
|
|
<FrameLayout android:id="@+id/fragment_container"
|
|
android:layout_below="@id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"/>
|
|
|
|
<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="visible"/>
|
|
|
|
</RelativeLayout> |