Added Android code
[wl-app.git] / Android / app / src / main / res / layout / progress_flowlayout.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3                 xmlns:app="http://schemas.android.com/apk/res-auto"
4                 xmlns:tools="http://schemas.android.com/tools"
5                 android:layout_width="match_parent"
6                 android:layout_height="wrap_content"
7                 android:animateLayoutChanges="true"
8                 android:background="@android:color/transparent">
9
10     <com.nex3z.flowlayout.FlowLayout
11         android:id="@+id/flList"
12         android:layout_width="match_parent"
13         android:layout_height="wrap_content"
14         android:animateLayoutChanges="true"
15         android:visibility="gone"
16         app:flChildSpacing="@dimen/filter_checkbox_spacing"
17         app:flChildSpacingForLastRow="align"
18         app:flRowSpacing="8dp"/>
19
20     <ProgressBar
21         android:id="@+id/pbLoading"
22         style="@style/Base.Widget.AppCompat.ProgressBar"
23         android:layout_width="wrap_content"
24         android:layout_height="wrap_content"
25         android:layout_centerInParent="true"
26         android:layout_marginBottom="@dimen/flowlayout_progress_margin"
27         android:layout_marginTop="@dimen/flowlayout_progress_margin"
28         android:theme="@style/CircularProgress"/>
29
30     <ImageButton
31         android:id="@+id/ibRetry"
32         android:layout_width="wrap_content"
33         android:layout_height="wrap_content"
34         android:layout_centerInParent="true"
35         android:layout_marginBottom="@dimen/flowlayout_progress_margin"
36         android:layout_marginTop="@dimen/flowlayout_progress_margin"
37         android:background="@null"
38         android:src="@drawable/refresh_icon_light_selector"
39         android:visibility="gone"
40         tools:ignore="ContentDescription"/>
41
42     <TextView
43         android:id="@+id/tvEmpty"
44         android:layout_width="wrap_content"
45         android:layout_height="wrap_content"
46         android:layout_centerInParent="true"
47         android:layout_margin="10dp"
48         android:text="@string/no_results"
49         android:textColor="@color/gray_dark"
50         android:textSize="14dp"
51         android:visibility="gone"
52         tools:ignore="SpUsage"/>
53
54 </RelativeLayout>