aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/item_footer_progress_bar.xml
blob: 9f2347ec5d063cdead6fd2496e72eec23500d74a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/linear_layout_footer_progress_bar_item"
    android:orientation="vertical">

    <ProgressBar
        android:id="@+id/progress_bar_footer_progress_bar_item"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginBottom="16dp"
        android:layout_gravity="center" />

    <RelativeLayout
        android:id="@+id/relative_layout_footer_progress_bar_item"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="16dp"
        android:layout_marginLeft="16dp"
        android:layout_marginStart="16dp"
        android:layout_marginRight="16dp"
        android:layout_marginEnd="16dp"
        android:visibility="gone">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toStartOf="@id/retry_button_footer_progress_bar_item"
            android:layout_alignParentStart="true"
            android:text="@string/load_data_failed"
            android:textSize="18sp"
            android:layout_centerVertical="true" />

        <Button
            android:id="@+id/retry_button_footer_progress_bar_item"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentEnd="true"
            android:layout_centerVertical="true"
            android:text="@string/retry" />

    </RelativeLayout>

</LinearLayout>