在InputMethodService中更改文本颜色

时间:2013-05-21 14:23:53

标签: android

我想用软键盘改变输入文字的颜色 可以使用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在构造函数中需要Viewboolean

如何在InputMethodService中使用该类,并在属性中控制它。 任何人都可以帮助我并提供一些代码建议吗?

0 个答案:

没有答案