Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6c37380 authored by Dayona Joseph's avatar Dayona Joseph
Browse files

enable zoom-in on app preview images

parent 01f2aa41
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -82,4 +82,7 @@ dependencies {
    implementation 'com.trello.rxlifecycle3:rxlifecycle-components-preference:3.1.0'
    implementation 'com.makeramen:roundedimageview:2.3.0'

    implementation 'com.github.chrisbanes:PhotoView:2.3.0'


}
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ class ScreenshotsCarouselAdapter(context: Context, private val screenshots: List
    override fun instantiateItem(container: ViewGroup, position: Int): Any {
        val view = layoutInflater.inflate(R.layout.screenshots_carousel_item, container, false)

        view.image.setImageBitmap(screenshots[position])
        view.photo_view.setImageBitmap(screenshots[position])

        container.addView(view)
        return view
+3 −4
Original line number Diff line number Diff line
@@ -22,10 +22,9 @@
    android:layout_height="match_parent"
    android:orientation="vertical">

    <ImageView
        android:id="@+id/image"
    <com.github.chrisbanes.photoview.PhotoView
        android:id="@+id/photo_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@android:color/black" />
        android:layout_height="match_parent"/>

</LinearLayout>
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }
}