更新一些库版本

pull/298/head
gedoor 4 years ago
parent cb39ad141b
commit da3026ad30
  1. 4
      app/src/main/java/io/legado/app/ui/widget/SearchView.kt
  2. 2
      app/src/main/java/io/legado/app/ui/widget/text/MultilineTextView.kt
  3. 2
      app/src/main/java/io/legado/app/ui/widget/text/ScrollTextView.kt

@ -20,12 +20,12 @@ class SearchView : SearchView {
private var textView: TextView? = null private var textView: TextView? = null
constructor( constructor(
context: Context?, context: Context,
attrs: AttributeSet? = null attrs: AttributeSet? = null
) : super(context, attrs) ) : super(context, attrs)
constructor( constructor(
context: Context?, context: Context,
attrs: AttributeSet?, attrs: AttributeSet?,
defStyleAttr: Int defStyleAttr: Int
) : super(context, attrs, defStyleAttr) ) : super(context, attrs, defStyleAttr)

@ -5,7 +5,7 @@ import android.graphics.Canvas
import android.util.AttributeSet import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatTextView import androidx.appcompat.widget.AppCompatTextView
class MultilineTextView(context: Context?, attrs: AttributeSet?) : class MultilineTextView(context: Context, attrs: AttributeSet?) :
AppCompatTextView(context, attrs) { AppCompatTextView(context, attrs) {
override fun onDraw(canvas: Canvas?) { override fun onDraw(canvas: Canvas?) {

@ -6,7 +6,7 @@ import android.util.AttributeSet
import android.view.MotionEvent import android.view.MotionEvent
import androidx.appcompat.widget.AppCompatTextView import androidx.appcompat.widget.AppCompatTextView
class ScrollTextView(context: Context?, attrs: AttributeSet?) : AppCompatTextView(context, attrs) { class ScrollTextView(context: Context, attrs: AttributeSet?) : AppCompatTextView(context, attrs) {
//滑动距离的最大边界 //滑动距离的最大边界
private var mOffsetHeight = 0 private var mOffsetHeight = 0

Loading…
Cancel
Save