rename some photo fragment views

This commit is contained in:
tibbi 2017-02-13 20:16:33 +01:00
parent 4fa600c07a
commit eb1ef6852e
2 changed files with 4 additions and 4 deletions

View File

@ -74,8 +74,8 @@ class PhotoFragment : ViewPagerFragment() {
}
}
subsamplingView = view.photo_view.apply { setOnClickListener({ photoClicked() }) }
glideView = view.glide_view.apply {
subsamplingView = view.subsampling_view.apply { setOnClickListener({ photoClicked() }) }
glideView = view.photo_view.apply {
setOnPhotoTapListener(object : PhotoViewAttacher.OnPhotoTapListener {
override fun onPhotoTap(view: View?, x: Float, y: Float) {
photoClicked()

View File

@ -6,12 +6,12 @@
android:layout_height="match_parent">
<uk.co.senab.photoview.PhotoView
android:id="@+id/glide_view"
android:id="@+id/photo_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
android:id="@+id/photo_view"
android:id="@+id/subsampling_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"/>