我根据 Google 为我创建的应用程序提供的示例键盘创建了自己的键盘。如何在我的应用程序中使用此键盘而不是默认键盘进行EditText
输入?我需要能够隐藏默认键盘并改用我的。
问问题
96 次
1 回答
0
您可以创建自己的类来扩展 EditText 并覆盖 onCheckIsTextEditor():
public class CustomEditText extends EditText
{
public CustomEditText(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public boolean onCheckIsTextEditor()
{
// Your code to use your own input method here.
}
}
于 2012-12-19T13:58:47.623 回答