mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
限制源编辑框的最大行数,滚动到其他输入框更容易,还有点问题,先改回
This commit is contained in:
parent
9c7a109ae5
commit
79303b7b91
@ -36,7 +36,7 @@ open class ScrollMultiAutoCompleteTextView @JvmOverloads constructor(
|
|||||||
override fun dispatchTouchEvent(event: MotionEvent): Boolean {
|
override fun dispatchTouchEvent(event: MotionEvent): Boolean {
|
||||||
if (event.action == MotionEvent.ACTION_DOWN) {
|
if (event.action == MotionEvent.ACTION_DOWN) {
|
||||||
//如果是新的按下事件,则对mBottomFlag重新初始化
|
//如果是新的按下事件,则对mBottomFlag重新初始化
|
||||||
mBottomFlag = false
|
mBottomFlag = lineCount <= maxLines
|
||||||
}
|
}
|
||||||
return super.dispatchTouchEvent(event)
|
return super.dispatchTouchEvent(event)
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
android:id="@+id/editText"
|
android:id="@+id/editText"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:inputType="textMultiLine"
|
android:inputType="textMultiLine" />
|
||||||
android:maxLines="12" />
|
|
||||||
|
|
||||||
</io.legado.app.ui.widget.text.TextInputLayout>
|
</io.legado.app.ui.widget.text.TextInputLayout>
|
Loading…
Reference in New Issue
Block a user