fix #160, allow disabling line wrap

This commit is contained in:
tibbi
2018-01-26 22:54:18 +01:00
parent 7f15b8c07a
commit 3b4d89ce97
11 changed files with 122 additions and 29 deletions

View File

@ -0,0 +1,17 @@
package com.simplemobiletools.notes.views
import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.widget.HorizontalScrollView
class MyHorizontalScrollView : HorizontalScrollView {
constructor(context: Context) : super(context)
constructor(context: Context, attrs: AttributeSet) : super(context, attrs)
override fun onTouchEvent(ev: MotionEvent): Boolean {
parent.requestDisallowInterceptTouchEvent(false)
return super.onTouchEvent(ev)
}
}