我想用软键盘改变输入文字的颜色
可以使用InputConnection
我让BaseInputConnection
个人:
public class k extends BaseInputConnection{
Keying ke;
public k(View targetView, boolean fullEditor) {
super(targetView, fullEditor);
// TODO Auto-generated constructor stub
}
}
但是在扩展InputMethodService
的类中,我无法创建对象。因为BaseInputConnection
在构造函数中需要View
和boolean
。
如何在InputMethodService
中使用该类,并在属性中控制它。
任何人都可以帮助我并提供一些代码建议吗?