briar_recycler_view.xml 3.25 KB
Newer Older
1
<?xml version="1.0" encoding="utf-8"?>
2 3
<android.support.constraint.ConstraintLayout
	android:id="@+id/relativeLayout"
4
	xmlns:android="http://schemas.android.com/apk/res/android"
5
	xmlns:app="http://schemas.android.com/apk/res-auto"
6 7 8
	xmlns:tools="http://schemas.android.com/tools"
	android:layout_width="match_parent"
	android:layout_height="match_parent">
9 10 11 12 13 14

	<android.support.v7.widget.RecyclerView
		android:id="@+id/recyclerView"
		android:layout_width="match_parent"
		android:layout_height="match_parent"
		android:scrollbars="vertical"
15 16 17 18
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toTopOf="parent"
		tools:listitem="@layout/list_item_contact"
		tools:visibility="visible"/>
19 20 21 22 23 24

	<ProgressBar
		android:id="@+id/progressBar"
		style="?android:attr/progressBarStyleLarge"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
25 26 27 28 29
		app:layout_constraintBottom_toBottomOf="parent"
		app:layout_constraintLeft_toLeftOf="parent"
		app:layout_constraintRight_toRightOf="parent"
		app:layout_constraintTop_toTopOf="parent"
		tools:visibility="invisible"/>
30

31 32 33 34 35 36 37 38 39
	<android.support.constraint.Group
		android:id="@+id/emptyState"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		app:constraint_referenced_ids="emptyImage, emptyText, emptyAction"
		tools:visibility="invisible"/>

	<android.support.v7.widget.AppCompatImageView
		android:id="@+id/emptyImage"
40 41
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
		android:layout_marginEnd="16dp"
		android:layout_marginLeft="16dp"
		android:layout_marginRight="16dp"
		android:layout_marginStart="16dp"
		android:layout_marginTop="16dp"
		app:layout_constraintBottom_toTopOf="@+id/emptyText"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toTopOf="parent"
		app:layout_constraintVertical_chainStyle="packed"
		app:tint="?attr/colorControlNormal"
		tools:src="@drawable/ic_empty_state_group_list"/>

	<TextView
		android:id="@+id/emptyText"
		android:layout_width="0dp"
		android:layout_height="wrap_content"
Torsten Grote's avatar
Torsten Grote committed
59
		android:gravity="center"
60
		android:padding="@dimen/margin_large"
Torsten Grote's avatar
Torsten Grote committed
61
		android:text="@string/no_data"
62
		android:textSize="@dimen/text_size_large"
63 64 65 66 67 68
		app:layout_constraintBottom_toTopOf="@+id/emptyAction"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintLeft_toLeftOf="parent"
		app:layout_constraintRight_toRightOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/emptyImage"
Torsten Grote's avatar
Torsten Grote committed
69
		tools:text="@string/no_contacts"/>
70

71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
	<TextView
		android:id="@+id/emptyAction"
		android:layout_width="0dp"
		android:layout_height="wrap_content"
		android:gravity="center"
		android:paddingBottom="@dimen/margin_large"
		android:paddingLeft="@dimen/margin_large"
		android:paddingRight="@dimen/margin_large"
		android:text="@string/no_data"
		android:textSize="@dimen/text_size_small"
		app:layout_constraintBottom_toBottomOf="parent"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintLeft_toLeftOf="parent"
		app:layout_constraintRight_toRightOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/emptyText"
		tools:text="@string/no_contacts_action"/>

</android.support.constraint.ConstraintLayout>