Switch refresh and spinner location

Julien LepillerWed Jul 21 14:20:55+0200 2021

08be4cf

Switch refresh and spinner location

app/src/main/res/layout/activity_dictionary.xml

11
<?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"
33
    xmlns:app="http://schemas.android.com/apk/res-auto"
44
    xmlns:tools="http://schemas.android.com/tools"
55
    android:layout_width="match_parent"

77
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
88
    tools:context=".DictionaryActivity"
99
    tools:showIn="@layout/activity_dictionary"
10-
    android:id="@+id/dictionary_refresh_layout">
10+
    android:orientation="vertical">
1111
12-
    <LinearLayout
13-
        android:layout_width="wrap_content"
12+
    <Spinner
13+
        android:layout_width="match_parent"
1414
        android:layout_height="wrap_content"
15-
        android:orientation="vertical">
15+
        android:id="@+id/lang_view"
16+
        android:layout_margin="8dp" />
1617
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">
2223
2324
        <ListView
2425
            android:id="@+id/dictionary_view"

3031
            android:layout_marginEnd="8dp"
3132
            android:layout_marginRight="8dp"
3233
            android:layout_marginBottom="8dp" />
33-
    </LinearLayout>
34+
    </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
3435
35-
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
35>
360>
\ No newline at end of file
36+
</LinearLayout>
36<
037<
\ No newline at end of file