mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
84 lines
3.6 KiB
XML
84 lines
3.6 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">
|
|
|
|
<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:background="?attr/colorPrimary"
|
|
app:contentInsetStart="14dp"
|
|
app:contentInsetLeft="14dp"
|
|
android:elevation="4dp"
|
|
android:theme="?attr/actionBarStyle">
|
|
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
|
android:id="@+id/self_avatar"
|
|
android:foreground="@drawable/contact_photo_background"
|
|
android:layout_width="35dp"
|
|
android:layout_height="35dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:cropToPadding="true"
|
|
android:clickable="true"
|
|
app:inverted="true"
|
|
tools:src="@drawable/ic_contact_picture"
|
|
android:contentDescription="@string/pref_profile_info_headline" />
|
|
|
|
<TextView style="@style/TextSecure.TitleTextStyle"
|
|
android:id="@+id/toolbar_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/app_name"
|
|
android:layout_weight="1"
|
|
android:layout_gravity="center_vertical"
|
|
android:paddingRight="10dp"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"/>
|
|
|
|
<ImageView android:id="@+id/search_action"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:src="@drawable/ic_search_white_24dp"
|
|
android:paddingRight="12dp"
|
|
android:paddingEnd="12dp"
|
|
android:paddingLeft="12dp"
|
|
android:paddingStart="12dp"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_marginBottom="4dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:contentDescription="@string/search"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.appcompat.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>
|