@ -20,12 +20,12 @@ class SearchView : SearchView {
private var textView: TextView? = null
constructor(
context: Context?,
context: Context,
attrs: AttributeSet? = null
) : super(context, attrs)
attrs: AttributeSet?,
defStyleAttr: Int
) : super(context, attrs, defStyleAttr)
@ -5,7 +5,7 @@ import android.graphics.Canvas
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatTextView
class MultilineTextView(context: Context?, attrs: AttributeSet?) :
class MultilineTextView(context: Context, attrs: AttributeSet?) :
AppCompatTextView(context, attrs) {
override fun onDraw(canvas: Canvas?) {
@ -6,7 +6,7 @@ import android.util.AttributeSet
import android.view.MotionEvent
class ScrollTextView(context: Context?, attrs: AttributeSet?) : AppCompatTextView(context, attrs) {
class ScrollTextView(context: Context, attrs: AttributeSet?) : AppCompatTextView(context, attrs) {
//滑动距离的最大边界
private var mOffsetHeight = 0