diff options
author | Jelena Petrovic <jelenapetrovic.7119@gmail.com> | 2022-11-09 23:55:53 +0100 |
---|---|---|
committer | Jelena Petrovic <jelenapetrovic.7119@gmail.com> | 2022-11-09 23:55:53 +0100 |
commit | d342f8e91c7daa0f706a686d0939e8e5146848c6 (patch) | |
tree | f47b09e30fc8968a51a3be3952d047a5ad53fd03 /Client/BrzoDoLokacije/app/src/main/res/layout | |
parent | 6181721dc548421ec2926c17a73f0d48a2c99482 (diff) |
dodat odabir nacina prikaza objava (u listi ili gridu), dodat refresh povlacenjem i spiner dok se ucitavaju objave #29
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
-rw-r--r-- | Client/BrzoDoLokacije/app/src/main/res/layout/fragment_show_posts.xml | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_show_posts.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_show_posts.xml index 02512d4..a12801e 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_show_posts.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_show_posts.xml @@ -22,7 +22,7 @@ <ImageButton - android:id="@+id/button3" + android:id="@+id/btnSortType" android:layout_width="50dp" android:layout_height="50dp" android:layout_alignParentRight="true" @@ -31,19 +31,19 @@ android:background="@color/white"/> <ImageButton - android:id="@+id/imageButton1" + android:id="@+id/btnSortDirection" android:layout_width="50dp" android:layout_height="50dp" android:layout_marginStart="8dp" android:layout_weight="1" android:scaleType="centerCrop" android:src="@drawable/sort" - app:layout_constraintStart_toEndOf="@+id/button3" + app:layout_constraintStart_toEndOf="@+id/btnSortType" tools:layout_editor_absoluteY="0dp" android:background="@color/white"/> <ImageButton - android:id="@+id/imageButton2" + android:id="@+id/btnLinearLayout" android:layout_width="50dp" android:layout_height="50dp" android:layout_marginEnd="16dp" @@ -51,13 +51,13 @@ android:background="@color/white" android:scaleType="centerCrop" android:src="@drawable/list" - app:layout_constraintEnd_toStartOf="@+id/imageButton3" + app:layout_constraintEnd_toStartOf="@+id/btnGridLayout" app:layout_constraintHorizontal_bias="1.0" - app:layout_constraintStart_toEndOf="@+id/imageButton1" + app:layout_constraintStart_toEndOf="@+id/btnSortDirection" tools:layout_editor_absoluteY="0dp" /> <ImageButton - android:id="@+id/imageButton3" + android:id="@+id/btnGridLayout" android:layout_width="50dp" android:layout_height="50dp" android:layout_marginStart="248dp" @@ -65,9 +65,14 @@ android:background="@color/white" android:scaleType="centerCrop" android:src="@drawable/grid" - app:layout_constraintStart_toEndOf="@+id/imageButton1" + android:clickable="true" + app:layout_constraintStart_toEndOf="@+id/btnSortDirection" tools:layout_editor_absoluteY="0dp" /> </androidx.constraintlayout.widget.ConstraintLayout> +<androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:layout_height="match_parent" + android:layout_width="match_parent" + android:id="@+id/swipeContainer"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/rvMain" @@ -77,5 +82,7 @@ app:layout_constraintTop_toTopOf="parent" > </androidx.recyclerview.widget.RecyclerView> +</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> + </LinearLayout>
\ No newline at end of file |