Scrolling EditText inside ScrollView(在 ScrollView 内滚动 EditText)
问题描述
我有一个讨厌的问题.我在 ScrollView
中有 EditText
(8 行).当我试图在 EditText
中滚动文本时,它的行为并不稳定.有时它在滚动,有时它没有集中注意力.
I have a nasty problem. I have EditText
(8 lines) inside ScrollView
. And when I'm trying to scroll text in EditText
it's behavior is not stable. Sometimes it's scrolling, some times it's not taking focus.
这是我的布局文件,让我的问题更清楚:
This is my layout file, to make my question more clear:
我知道我遇到这个问题是因为将一个可滚动控件放在另一个控件中,但我不知道该怎么做.所以,如果可以的话,请帮助我.
I understand that I'm having this issue because of holding one scrollable control inside another, yet I don't know what to do with this. So, please help me if you can.
提前致谢.
我试过了,没有结果.我仍然无法滚动我的编辑框.
I've tried this, and no result. I'm still unable to scroll my editbox.
推荐答案
试试:
在你的情况下:
}
这篇关于在 ScrollView 内滚动 EditText的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!