Question

I have to recall onCreateInputView because I have two skins of keyoards and I want to set it if a value is on preferences. Now I can get this only restart application process, because I have a switch at the start of the onCreateInputView(), but after inflated, I cannot change this dinamically..

if (mKeyboardView2 != null) {
        mKeyboardView2.closing();
        mInputView2.invalidate();
        mInputView2.setVisibility(View.GONE);
        ((ViewGroup)mInputView2.getParent()).removeView(mInputView2);

Maybe with a onDestroy() of service? (but from preferenceactivity I cannot do this)

Was it helpful?

Solution

there is a specific method to set a view.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top