Switch refresh and spinner location
app/src/main/res/layout/activity_dictionary.xml
1 | 1 | <?xml version="1.0" encoding="utf-8"?> | |
2 | - | <androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
2 | + | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
3 | 3 | xmlns:app="http://schemas.android.com/apk/res-auto" | |
4 | 4 | xmlns:tools="http://schemas.android.com/tools" | |
5 | 5 | android:layout_width="match_parent" | |
… | |||
7 | 7 | app:layout_behavior="@string/appbar_scrolling_view_behavior" | |
8 | 8 | tools:context=".DictionaryActivity" | |
9 | 9 | tools:showIn="@layout/activity_dictionary" | |
10 | - | android:id="@+id/dictionary_refresh_layout"> | |
10 | + | android:orientation="vertical"> | |
11 | 11 | ||
12 | - | <LinearLayout | |
13 | - | android:layout_width="wrap_content" | |
12 | + | <Spinner | |
13 | + | android:layout_width="match_parent" | |
14 | 14 | android:layout_height="wrap_content" | |
15 | - | android:orientation="vertical"> | |
15 | + | android:id="@+id/lang_view" | |
16 | + | android:layout_margin="8dp" /> | |
16 | 17 | ||
17 | - | <Spinner | |
18 | - | android:layout_width="match_parent" | |
19 | - | android:layout_height="wrap_content" | |
20 | - | android:id="@+id/lang_view" | |
21 | - | android:layout_margin="8dp" /> | |
18 | + | <androidx.swiperefreshlayout.widget.SwipeRefreshLayout | |
19 | + | android:layout_width="wrap_content" | |
20 | + | android:layout_height="wrap_content" | |
21 | + | android:orientation="vertical" | |
22 | + | android:id="@+id/dictionary_refresh_layout"> | |
22 | 23 | ||
23 | 24 | <ListView | |
24 | 25 | android:id="@+id/dictionary_view" | |
… | |||
30 | 31 | android:layout_marginEnd="8dp" | |
31 | 32 | android:layout_marginRight="8dp" | |
32 | 33 | android:layout_marginBottom="8dp" /> | |
33 | - | </LinearLayout> | |
34 | + | </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> | |
34 | 35 | ||
35 | - | </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> | |
35 | > | ||
36 | 0 | > | \ No newline at end of file |
36 | + | </LinearLayout> | |
36 | < | ||
0 | 37 | < | \ No newline at end of file |