|
1 | 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:orientation="vertical" |
| 2 | + |
| 3 | +<androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 4 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 5 | + xmlns:tools="http://schemas.android.com/tools" |
| 6 | + android:id="@+id/swipe_refresh_layout" |
| 7 | + android:layout_width="match_parent" |
| 8 | + android:layout_height="match_parent"> |
| 9 | + |
| 10 | + <RelativeLayout |
6 | 11 | android:layout_width="match_parent"
|
7 | 12 | android:layout_height="match_parent"
|
8 | 13 | android:background="?attr/contributionsListBackground"
|
9 |
| - > |
| 14 | + android:orientation="vertical"> |
| 15 | + |
10 | 16 |
|
11 | 17 | <TextView
|
12 |
| - android:id="@+id/noContributionsYet" |
13 |
| - android:layout_width="match_parent" |
14 |
| - android:layout_height="wrap_content" |
15 |
| - android:text="@string/no_uploads" |
16 |
| - android:gravity="center" |
17 |
| - android:layout_centerInParent="true" |
18 |
| - android:visibility="gone" |
19 |
| - android:layout_marginRight="@dimen/tiny_gap" |
20 |
| - android:layout_marginEnd="@dimen/tiny_gap" |
21 |
| - /> |
| 18 | + android:id="@+id/noContributionsYet" |
| 19 | + android:layout_width="match_parent" |
| 20 | + android:layout_height="wrap_content" |
| 21 | + android:layout_centerInParent="true" |
| 22 | + android:layout_marginEnd="@dimen/tiny_gap" |
| 23 | + android:layout_marginRight="@dimen/tiny_gap" |
| 24 | + android:gravity="center" |
| 25 | + android:text="@string/no_uploads" |
| 26 | + android:visibility="gone" /> |
22 | 27 |
|
23 | 28 | <ProgressBar
|
24 | 29 | android:id="@+id/loadingContributionsProgressBar"
|
25 | 30 | android:layout_width="wrap_content"
|
26 | 31 | android:layout_height="wrap_content"
|
27 | 32 | android:layout_centerInParent="true"
|
28 |
| - android:visibility="gone" |
29 |
| - /> |
| 33 | + android:visibility="gone" /> |
30 | 34 |
|
31 | 35 | <RelativeLayout
|
32 | 36 | android:layout_width="match_parent"
|
33 | 37 | android:layout_height="match_parent"
|
34 | 38 | android:orientation="vertical">
|
35 | 39 |
|
36 |
| - <androidx.appcompat.widget.AppCompatTextView |
37 |
| - android:id="@+id/tv_contributions_of_user" |
38 |
| - style="@style/MediaDetailTextLabel" |
39 |
| - tools:text="Contributions of user : Ashish" |
40 |
| - android:layout_width="match_parent" |
41 |
| - android:layout_height="wrap_content" |
42 |
| - android:padding="10dp" |
43 |
| - tools:visibility="visible" |
44 |
| - android:visibility="gone" /> |
45 |
| - |
46 |
| - <androidx.recyclerview.widget.RecyclerView |
47 |
| - android:id="@+id/contributionsList" |
48 |
| - android:layout_width="match_parent" |
49 |
| - android:layout_height="match_parent" |
50 |
| - android:layout_below="@id/tv_contributions_of_user" |
51 |
| - android:scrollbars="vertical" |
52 |
| - android:fadeScrollbars="true" |
53 |
| - android:scrollbarThumbVertical="@color/primaryColor" |
54 |
| - android:scrollbarSize="@dimen/dimen_6"/> |
| 40 | + <androidx.appcompat.widget.AppCompatTextView |
| 41 | + android:id="@+id/tv_contributions_of_user" |
| 42 | + style="@style/MediaDetailTextLabel" |
| 43 | + android:layout_width="match_parent" |
| 44 | + android:layout_height="wrap_content" |
| 45 | + android:padding="10dp" |
| 46 | + android:visibility="gone" |
| 47 | + tools:text="Contributions of user : Ashish" |
| 48 | + tools:visibility="visible" /> |
| 49 | + |
| 50 | + <androidx.recyclerview.widget.RecyclerView |
| 51 | + android:id="@+id/contributionsList" |
| 52 | + android:layout_width="match_parent" |
| 53 | + android:layout_height="match_parent" |
| 54 | + android:layout_below="@id/tv_contributions_of_user" |
| 55 | + android:fadeScrollbars="true" |
| 56 | + android:scrollbarSize="@dimen/dimen_6" |
| 57 | + android:scrollbarThumbVertical="@color/primaryColor" |
| 58 | + android:scrollbars="vertical" /> |
55 | 59 | </RelativeLayout>
|
56 | 60 |
|
57 | 61 | <LinearLayout
|
58 |
| - android:id="@+id/fab_layout" |
| 62 | + android:id="@+id/fab_layout" |
| 63 | + android:layout_width="wrap_content" |
| 64 | + android:layout_height="wrap_content" |
| 65 | + android:layout_alignParentEnd="true" |
| 66 | + android:layout_alignParentRight="true" |
| 67 | + android:layout_alignParentBottom="true" |
| 68 | + android:layout_marginRight="@dimen/medium_height" |
| 69 | + android:layout_marginBottom="@dimen/activity_margin_horizontal" |
| 70 | + android:gravity="center" |
| 71 | + android:orientation="vertical"> |
| 72 | + |
| 73 | + <com.google.android.material.floatingactionbutton.FloatingActionButton |
| 74 | + android:id="@+id/fab_camera" |
| 75 | + android:layout_width="wrap_content" |
| 76 | + android:layout_height="wrap_content" |
| 77 | + android:contentDescription="@string/add_contribution_from_camera" |
| 78 | + android:tint="@color/button_blue" |
| 79 | + android:visibility="gone" |
| 80 | + app:backgroundTint="@color/main_background_light" |
| 81 | + app:elevation="@dimen/tiny_margin" |
| 82 | + app:fabSize="mini" |
| 83 | + app:srcCompat="@drawable/ic_photo_camera_white_24dp" |
| 84 | + app:useCompatPadding="true" /> |
| 85 | + |
| 86 | + <com.google.android.material.floatingactionbutton.FloatingActionButton |
| 87 | + android:id="@+id/fab_gallery" |
| 88 | + android:layout_width="wrap_content" |
| 89 | + android:layout_height="wrap_content" |
| 90 | + android:contentDescription="@string/add_contribution_from_photos" |
| 91 | + android:tint="@color/button_blue" |
| 92 | + android:visibility="gone" |
| 93 | + app:backgroundTint="@color/main_background_light" |
| 94 | + app:elevation="@dimen/tiny_margin" |
| 95 | + app:fabSize="mini" |
| 96 | + app:srcCompat="@drawable/ic_photo_white_24dp" |
| 97 | + app:useCompatPadding="true" /> |
| 98 | + |
| 99 | + <com.google.android.material.floatingactionbutton.FloatingActionButton |
| 100 | + android:id="@+id/fab_custom_gallery" |
| 101 | + android:layout_width="wrap_content" |
| 102 | + android:layout_height="wrap_content" |
| 103 | + android:background="@drawable/commons" |
| 104 | + android:contentDescription="@string/add_contribution_from_contributions_gallery" |
| 105 | + android:tint="@color/button_blue" |
| 106 | + android:visibility="gone" |
| 107 | + app:backgroundTint="@color/main_background_light" |
| 108 | + app:elevation="@dimen/tiny_margin" |
| 109 | + app:fabSize="mini" |
| 110 | + app:srcCompat="@drawable/ic_custom_image_picker" |
| 111 | + app:useCompatPadding="true" /> |
| 112 | + |
| 113 | + <com.google.android.material.floatingactionbutton.FloatingActionButton |
| 114 | + android:id="@+id/fab_plus" |
59 | 115 | android:layout_width="wrap_content"
|
60 | 116 | android:layout_height="wrap_content"
|
61 |
| - android:layout_alignParentBottom="true" |
62 |
| - android:layout_alignParentEnd="true" |
63 |
| - android:layout_alignParentRight="true" |
64 |
| - android:layout_marginRight="@dimen/medium_height" |
65 |
| - android:layout_marginBottom="@dimen/activity_margin_horizontal" |
66 |
| - android:orientation="vertical" |
67 |
| - android:gravity="center" |
68 |
| - > |
69 |
| - |
70 |
| - <com.google.android.material.floatingactionbutton.FloatingActionButton |
71 |
| - android:id="@+id/fab_camera" |
72 |
| - android:layout_width="wrap_content" |
73 |
| - android:layout_height="wrap_content" |
74 |
| - android:contentDescription="@string/add_contribution_from_camera" |
75 |
| - android:tint="@color/button_blue" |
76 |
| - android:visibility="gone" |
77 |
| - app:backgroundTint="@color/main_background_light" |
78 |
| - app:elevation="@dimen/tiny_margin" |
79 |
| - app:fabSize="mini" |
80 |
| - app:srcCompat="@drawable/ic_photo_camera_white_24dp" |
81 |
| - app:useCompatPadding="true" /> |
82 |
| - |
83 |
| - <com.google.android.material.floatingactionbutton.FloatingActionButton |
84 |
| - android:id="@+id/fab_gallery" |
85 |
| - android:layout_width="wrap_content" |
86 |
| - android:layout_height="wrap_content" |
87 |
| - android:contentDescription="@string/add_contribution_from_photos" |
88 |
| - android:tint="@color/button_blue" |
89 |
| - android:visibility="gone" |
90 |
| - app:backgroundTint="@color/main_background_light" |
91 |
| - app:elevation="@dimen/tiny_margin" |
92 |
| - app:fabSize="mini" |
93 |
| - app:srcCompat="@drawable/ic_photo_white_24dp" |
94 |
| - app:useCompatPadding="true" /> |
95 |
| - |
96 |
| - <com.google.android.material.floatingactionbutton.FloatingActionButton |
97 |
| - android:id="@+id/fab_custom_gallery" |
98 |
| - android:layout_width="wrap_content" |
99 |
| - android:layout_height="wrap_content" |
100 |
| - android:background="@drawable/commons" |
101 |
| - android:contentDescription="@string/add_contribution_from_contributions_gallery" |
102 |
| - android:tint="@color/button_blue" |
103 |
| - android:visibility="gone" |
104 |
| - app:backgroundTint="@color/main_background_light" |
105 |
| - app:elevation="@dimen/tiny_margin" |
106 |
| - app:fabSize="mini" |
107 |
| - app:srcCompat="@drawable/ic_custom_image_picker" |
108 |
| - app:useCompatPadding="true" /> |
109 |
| - |
110 |
| - <com.google.android.material.floatingactionbutton.FloatingActionButton |
111 |
| - android:id="@+id/fab_plus" |
112 |
| - android:layout_width="wrap_content" |
113 |
| - android:layout_height="wrap_content" |
114 |
| - android:contentDescription="@string/add_new_contribution" |
115 |
| - android:gravity="center_vertical" |
116 |
| - android:visibility="visible" |
117 |
| - app:backgroundTint="@color/status_bar_blue" |
118 |
| - app:elevation="@dimen/tiny_margin" |
119 |
| - app:srcCompat="@drawable/ic_add_white_24dp" |
120 |
| - app:useCompatPadding="true" /> |
| 117 | + android:contentDescription="@string/add_new_contribution" |
| 118 | + android:gravity="center_vertical" |
| 119 | + android:visibility="visible" |
| 120 | + app:backgroundTint="@color/status_bar_blue" |
| 121 | + app:elevation="@dimen/tiny_margin" |
| 122 | + app:srcCompat="@drawable/ic_add_white_24dp" |
| 123 | + app:useCompatPadding="true" /> |
121 | 124 |
|
122 | 125 | </LinearLayout>
|
123 | 126 |
|
124 |
| -</RelativeLayout> |
| 127 | + </RelativeLayout> |
125 | 128 |
|
| 129 | +</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> |
0 commit comments