<?
xml version=
"1.0" encoding=
"utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
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/parent_layout"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"?android:attr/colorBackground">
<LinearLayout
android:
id=
"@+id/initial_layout"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
app:layout_behavior=
"@string/appbar_scrolling_view_behavior"
tools:
ignore=
"UseCompoundDrawables"
tools:visibility=
"gone">
<ImageView
android:layout_width=
"48dp"
android:layout_height=
"48dp"
android:layout_gravity=
"center_horizontal"
android:layout_marginVertical=
"@dimen/grid_unit_x4"
android:importantForAccessibility=
"no"
android:src=
"@drawable/ic_contacts_outline"
app:tint=
"?attr/colorOnSurface" />
<TextView
android:
id=
"@+id/explain_text"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"@dimen/grid_unit_x2"
android:gravity=
"center_horizontal"
android:text=
"@string/directory_explain_text"
android:textAlignment=
"center"
android:textAppearance=
"@style/Threema.TextAppearance.EmptyView" />
</LinearLayout>
<FrameLayout
android:
id=
"@+id/results_layout"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"?android:attr/colorBackground"
android:orientation=
"vertical"
android:visibility=
"gone"
app:layout_behavior=
"@string/appbar_scrolling_view_behavior"
tools:visibility=
"visible">
<TextView
android:
id=
"@+id/empty_text"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/grid_unit_x4"
android:gravity=
"center_horizontal"
android:paddingHorizontal=
"@dimen/grid_unit_x2"
android:textAlignment=
"center"
android:textAppearance=
"@style/Threema.TextAppearance.EmptyView" />
<ch.threema.app.ui.EmptyRecyclerView
android:
id=
"@+id/recycler"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginTop=
"@dimen/grid_unit_x0_5"
android:clipToPadding=
"false"
tools:listitem=
"@layout/item_directory" />
</FrameLayout>
<com.google.android.material.appbar.AppBarLayout
android:
id=
"@+id/appbar"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:liftOnScroll=
"true"
app:liftOnScrollTargetViewId=
"@+id/recycler">
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content">
<com.google.android.material.search.SearchBar
android:
id=
"@+id/toolbar"
style=
"@style/Threema.SearchBar.Style"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:defaultMarginsEnabled=
"true"
app:navigationIcon=
"?attr/homeAsUpIndicator" />
<
include layout=
"@layout/connection_indicator" />
</FrameLayout>
<HorizontalScrollView
android:
id=
"@+id/chip_group_scroll_container"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:clipToPadding=
"false"
android:paddingHorizontal=
"@dimen/grid_unit_x2"
android:paddingBottom=
"@dimen/grid_unit_x1"
android:scrollbarSize=
"0dp"
android:scrollbars=
"none">
<com.google.android.material.chip.ChipGroup
android:
id=
"@+id/chip_group"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:animateLayoutChanges=
"true"
android:visibility=
"gone"
app:chipSpacingHorizontal=
"@dimen/grid_unit_x0_5"
app:chipSpacingVertical=
"0dp"
app:singleLine=
"true"
tools:visibility=
"visible" />
</HorizontalScrollView>
</com.google.android.material.appbar.AppBarLayout>
<com.google.android.material.progressindicator.LinearProgressIndicator
android:
id=
"@+id/progress_bar"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:indeterminate=
"true"
app:layout_behavior=
"@string/appbar_scrolling_view_behavior" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>