我使用了表格布局并为其提供了垂直滚动条。表格布局有一个 edittext 表格行,其输入类型为 textMultiLine 我想向其添加垂直滚动条。为此我使用过,
edittext_level_desc.setScroller(new Scroller(getApplicationContext()));
edittext_level_desc.setVerticalScrollBarEnabled(true);
但它不起作用。
我使用了表格布局并为其提供了垂直滚动条。表格布局有一个 edittext 表格行,其输入类型为 textMultiLine 我想向其添加垂直滚动条。为此我使用过,
edittext_level_desc.setScroller(new Scroller(getApplicationContext()));
edittext_level_desc.setVerticalScrollBarEnabled(true);
但它不起作用。
Check out these:
If any of them work, but it is quite difficult and annoying to apply scrollers in scrollers you may need a custom view, and also a custom scroll based on gestures or touch events.
I suggest change your layout in order to avoid that. It may be more helpful to have an EditText not scrolling expanding.