mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
fix #160, allow disabling line wrap
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user