totzi10
totzi10

Reputation: 135

Call a new onCreateInputView()

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)

Upvotes: 1

Views: 310

Answers (1)

user3084416
user3084416

Reputation: 88

there is a specific method to set a view.

Upvotes: 2

Related Questions