fragment_pinned_messages.xml 3.59 KB
Newer Older
1
<?xml version="1.0" encoding="utf-8"?>
2
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 4 5
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
6 7
    android:layout_height="match_parent"
    tools:context=".pinnedmessages.ui.PinnedMessagesFragment">
8

9
    <androidx.recyclerview.widget.RecyclerView
10
        android:id="@+id/recycler_view_pinned"
11 12 13 14 15 16 17
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:scrollbars="vertical"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
18 19 20 21 22 23 24

    <com.wang.avi.AVLoadingIndicatorView
        android:id="@+id/view_loading"
        android:layout_width="48dp"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:layout_marginTop="8dp"
25
        android:layout_marginBottom="8dp"
26
        android:visibility="gone"
27
        app:indicatorColor="@color/colorBlack"
28 29 30 31 32 33 34
        app:indicatorName="BallPulseIndicator"
        app:layout_constraintBottom_toBottomOf="@+id/recycler_view_pinned"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:visibility="visible" />

35 36 37 38
    <ImageView
        android:id="@+id/iv_pin_icon"
        android:layout_width="100dp"
        android:layout_height="100dp"
39
        android:src="@drawable/ic_action_message_pin_24dp"
40
        android:tint="@color/icon_grey"
41
        app:layout_constraintBottom_toTopOf="@id/tv_pin_title"
42
        app:layout_constraintEnd_toEndOf="parent"
43
        app:layout_constraintStart_toStartOf="parent"
44
        app:layout_constraintTop_toTopOf="parent"
45
        app:layout_constraintVertical_chainStyle="packed" />
46 47 48 49 50

    <TextView
        android:id="@+id/tv_pin_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
51
        android:layout_marginTop="24dp"
52
        android:text="@string/no_pinned_messages"
53
        android:textColor="@color/colorSecondaryText"
54 55
        android:textSize="20sp"
        android:textStyle="bold"
56 57 58 59
        app:layout_constraintBottom_toTopOf="@id/tv_pin_description"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/iv_pin_icon" />
60 61 62 63 64 65

    <TextView
        android:id="@+id/tv_pin_description"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="16dp"
66
        android:text="@string/no_pinned_description"
67
        android:textAlignment="center"
68
        android:textColor="@color/colorSecondaryTextLight"
69
        android:textSize="16sp"
70 71 72 73
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/tv_pin_title" />
74

75
    <androidx.constraintlayout.widget.Group
76 77 78
        android:id="@+id/pin_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
79
        android:visibility="gone"
80
        app:constraint_referenced_ids="tv_pin_description,iv_pin_icon,tv_pin_title"
81 82
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
Divyanshu Bhargava's avatar
Divyanshu Bhargava committed
83
        tools:visibility="visible" />
84

85
</androidx.constraintlayout.widget.ConstraintLayout>