Loading app/build.gradle +3 −0 Original line number Diff line number Diff line Loading @@ -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' } app/src/main/java/foundation/e/apps/application/ScreenshotsCarouselAdapter.kt +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading app/src/main/res/layout/screenshots_carousel_item.xml +3 −4 Original line number Diff line number Diff line Loading @@ -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 build.gradle +1 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ allprojects { repositories { google() jcenter() maven { url "https://jitpack.io" } } } Loading Loading
app/build.gradle +3 −0 Original line number Diff line number Diff line Loading @@ -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' }
app/src/main/java/foundation/e/apps/application/ScreenshotsCarouselAdapter.kt +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
app/src/main/res/layout/screenshots_carousel_item.xml +3 −4 Original line number Diff line number Diff line Loading @@ -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
build.gradle +1 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ allprojects { repositories { google() jcenter() maven { url "https://jitpack.io" } } } Loading