capi_fragment_list_form.xml 2.85 KB
Newer Older
mahendri.md's avatar
mahendri.md committed
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
mahendri.md's avatar
mahendri.md committed
3
    xmlns:app="http://schemas.android.com/apk/res-auto"
4
    xmlns:tools="http://schemas.android.com/tools"
mahendri.md's avatar
mahendri.md committed
5 6 7 8
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/background">

9
    <android.support.v4.widget.NestedScrollView
mahendri.md's avatar
mahendri.md committed
10
        android:layout_width="match_parent"
11 12
        android:layout_height="match_parent"
        android:fillViewport="true">
mahendri.md's avatar
mahendri.md committed
13

14 15
        <LinearLayout
            android:layout_width="match_parent"
mahendri.md's avatar
mahendri.md committed
16
            android:layout_height="wrap_content"
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
            android:orientation="vertical">

            <android.support.v7.widget.RecyclerView
                android:id="@+id/recycler_view"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                tools:listitem="@layout/collectiva_item_form" />

            <ProgressBar
                android:id="@+id/holder_progress_bar"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@+id/recycler_view"
                android:layout_centerHorizontal="true"
                android:layout_centerInParent="false"
                android:layout_centerVertical="false"
                android:layout_marginBottom="16dp"
                android:layout_marginTop="16dp" />

            <LinearLayout
                android:id="@+id/holder_message"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_centerInParent="true"
                android:background="@color/background"
                android:gravity="center"
                android:orientation="vertical"
                android:paddingBottom="16dp"
                android:paddingTop="16dp"
                android:visibility="gone">

                <ImageView
                    android:id="@+id/icon_message"
                    android:layout_width="50dp"
                    android:layout_height="70dp"
                    android:tint="@android:color/darker_gray"
                    app:srcCompat="@drawable/ic_sad_sorry" />

                <TextView
                    android:id="@+id/message"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="Sorry, internal error." />
            </LinearLayout>

        </LinearLayout>
    </android.support.v4.widget.NestedScrollView>

    <!--<TextView-->
    <!--android:id="@android:id/empty"-->
    <!--android:layout_width="match_parent"-->
    <!--android:layout_height="match_parent"-->
    <!--android:gravity="center"-->
    <!--android:text="@string/no_items_display"-->
    <!--android:textSize="21sp" />-->

mahendri.md's avatar
mahendri.md committed
73
</RelativeLayout>