rename some photo fragment views
This commit is contained in:
parent
4fa600c07a
commit
eb1ef6852e
|
@ -74,8 +74,8 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
subsamplingView = view.photo_view.apply { setOnClickListener({ photoClicked() }) }
|
subsamplingView = view.subsampling_view.apply { setOnClickListener({ photoClicked() }) }
|
||||||
glideView = view.glide_view.apply {
|
glideView = view.photo_view.apply {
|
||||||
setOnPhotoTapListener(object : PhotoViewAttacher.OnPhotoTapListener {
|
setOnPhotoTapListener(object : PhotoViewAttacher.OnPhotoTapListener {
|
||||||
override fun onPhotoTap(view: View?, x: Float, y: Float) {
|
override fun onPhotoTap(view: View?, x: Float, y: Float) {
|
||||||
photoClicked()
|
photoClicked()
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<uk.co.senab.photoview.PhotoView
|
<uk.co.senab.photoview.PhotoView
|
||||||
android:id="@+id/glide_view"
|
android:id="@+id/photo_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"/>
|
android:layout_height="match_parent"/>
|
||||||
|
|
||||||
<com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
|
<com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
|
||||||
android:id="@+id/photo_view"
|
android:id="@+id/subsampling_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:visibility="gone"/>
|
android:visibility="gone"/>
|
||||||
|
|
Loading…
Reference in New Issue