diff options
author | Jelena Petrovic <jelenapetrovic.7119@gmail.com> | 2022-12-09 05:11:38 +0100 |
---|---|---|
committer | Jelena Petrovic <jelenapetrovic.7119@gmail.com> | 2022-12-09 05:11:38 +0100 |
commit | 2fbd39c63d146830743bcdc32d915df554794932 (patch) | |
tree | 821126d5e555b9eb7da24de35016885c779aab2c /Client/BrzoDoLokacije/app/src/main/res/layout | |
parent | 5bfaeefd0c1775410febef6c1ae90c7f2ce445c1 (diff) |
Omoguceno zumiranje i preuzimanje slika kada se uvelicaju #83
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
-rw-r--r-- | Client/BrzoDoLokacije/app/src/main/res/layout/activity_opened_images.xml | 24 | ||||
-rw-r--r-- | Client/BrzoDoLokacije/app/src/main/res/layout/opened_post_image.xml | 12 |
2 files changed, 17 insertions, 19 deletions
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_opened_images.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_opened_images.xml index 2d3de20..3a1fbbc 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/activity_opened_images.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/activity_opened_images.xml @@ -8,40 +8,38 @@ android:background="@color/design_default_color_background"> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" - android:layout_height="40dp" + android:layout_height="50dp" android:elevation="5dp" app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toStartOf="parent" + android:background="@color/unfollow_transparent" android:id="@+id/clImageHeader"> <ImageButton - android:layout_width="35dp" - android:layout_height="35dp" + android:layout_width="50dp" + android:layout_height="50dp" app:layout_constraintStart_toStartOf="parent" - android:foregroundGravity="center_vertical" - android:background="@color/design_default_color_background" + android:background="@null" android:src="@drawable/ic_baseline_arrow_back" android:id="@+id/btnBackToPost"/> <ImageButton - android:layout_width="35dp" - android:layout_height="35dp" + android:layout_width="50dp" + android:layout_height="50dp" app:layout_constraintEnd_toEndOf="parent" - android:foregroundGravity="center_vertical" - android:background="@color/design_default_color_background" + android:background="@null" android:src="@drawable/ic_baseline_arrow_back" android:id="@+id/btnDownload"/> </androidx.constraintlayout.widget.ConstraintLayout> - <androidx.constraintlayout.widget.ConstraintLayout + <androidx.appcompat.widget.LinearLayoutCompat android:layout_width="match_parent" android:layout_height="match_parent" - app:layout_constraintTop_toTopOf="parent" - app:layout_constraintStart_toStartOf="parent" + android:orientation="vertical" android:id="@+id/rvParent"> <androidx.recyclerview.widget.RecyclerView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/rvImages"/> - </androidx.constraintlayout.widget.ConstraintLayout> + </androidx.appcompat.widget.LinearLayoutCompat> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/opened_post_image.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/opened_post_image.xml index 739e557..e63a903 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/opened_post_image.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/opened_post_image.xml @@ -1,14 +1,14 @@ <?xml version="1.0" encoding="utf-8"?> -<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" +<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto"> - <ImageView + <com.github.piasy.biv.view.BigImageView android:layout_width="match_parent" - android:layout_height="wrap_content" - app:layout_constraintTop_toTopOf="parent" - app:layout_constraintBottom_toBottomOf="parent" + android:layout_height="match_parent" + app:initScaleType="centerInside" + app:optimizeDisplay="true" android:id="@+id/ivOpenedImage"/> -</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file +</androidx.appcompat.widget.LinearLayoutCompat>
\ No newline at end of file |