在EditText的父级控件中找一个,设置成
android:focusable="true"
android:focusableInTouchMode="true"
这样,就把EditText默认的行为截断了!
本文介绍了一种通过在EditText的父级控件上设置特定属性来改变其默认行为的方法。通过将父控件的focusable及focusableInTouchMode属性设置为true,可以有效地阻止EditText自动获取焦点。
在EditText的父级控件中找一个,设置成
android:focusable="true"
android:focusableInTouchMode="true"
这样,就把EditText默认的行为截断了!

被折叠的 条评论
为什么被折叠?