fragment_pinned_messages.xml 3.28 KB
Newer Older
1 2 3 4 5
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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:layout_width="match_parent"
6 7
    android:layout_height="match_parent"
    tools:context=".pinnedmessages.ui.PinnedMessagesFragment">
8 9 10 11 12

    <android.support.v7.widget.RecyclerView
        android:id="@+id/recycler_view_pinned"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
Filipe de Lima Brito's avatar
Filipe de Lima Brito committed
13
        android:scrollbars="vertical" />
14 15 16 17 18 19 20 21 22

    <com.wang.avi.AVLoadingIndicatorView
        android:id="@+id/view_loading"
        android:layout_width="48dp"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:layout_marginBottom="8dp"
        android:layout_marginTop="8dp"
        android:visibility="gone"
23
        app:indicatorColor="@color/colorBlack"
24 25 26 27 28 29 30
        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" />

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

    <TextView
        android:id="@+id/tv_pin_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
47
        android:layout_marginTop="24dp"
48
        android:text="@string/no_pinned_messages"
49
        android:textColor="@color/colorSecondaryText"
50 51
        android:textSize="20sp"
        android:textStyle="bold"
52 53 54 55
        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" />
56 57 58 59 60 61

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

    <android.support.constraint.Group
        android:id="@+id/pin_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
75
        android:visibility="gone"
76
        app:constraint_referenced_ids="tv_pin_description,iv_pin_icon,tv_pin_title"
Divyanshu Bhargava's avatar
Divyanshu Bhargava committed
77
        tools:visibility="visible" />
78

79
</android.support.constraint.ConstraintLayout>