[android] Swipe left/right in image screen to see other images from the same message

This commit is contained in:
Torsten Grote
2018-12-07 12:42:09 -02:00
parent 87377666aa
commit 2bea581654
8 changed files with 264 additions and 83 deletions

View File

@@ -8,12 +8,11 @@
android:background="@color/briar_black"
tools:context=".android.conversation.ImageActivity">
<com.github.chrisbanes.photoview.PhotoView
android:id="@+id/photoView"
<android.support.v4.view.ViewPager
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="ContentDescription"
tools:srcCompat="@tools:sample/backgrounds/scenic"/>
tools:background="@color/briar_green_light"/>
<android.support.design.widget.AppBarLayout
android:id="@+id/appBarLayout"

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<com.github.chrisbanes.photoview.PhotoView
android:id="@+id/photoView"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="ContentDescription"
tools:srcCompat="@tools:sample/backgrounds/scenic"/>