相关疑难解决方法(0)

Android:BottomSheetDialog中的多行文本EditText

我有一个底部对话框,并在布局中存在EditText.EditText是多行,最大行是3.我把:

commentET.setMovementMethod(new ScrollingMovementMethod());
commentET.setScroller(new Scroller(bottomSheetBlock.getContext()));
commentET.setVerticalScrollBarEnabled(true);
Run Code Online (Sandbox Code Playgroud)

但是当用户将开始垂直滚动EditText文本时,BottomSheetBehavior拦截事件和EditText将不会垂直滚动.

在此输入图像描述

有谁知道如何解决这个问题?

android scroll android-edittext bottom-sheet

5
推荐指数
2
解决办法
1536
查看次数

标签 统计

android ×1

android-edittext ×1

bottom-sheet ×1

scroll ×1