findViewById won't work in InputMethodService, what do i do?
<p>I'm trying to create an android keyboard, this code works fine so far</p>

<pre><code>package keyboard.rob.com;

import...

public class xyz extends InputMethodService 
implements KeyboardView.OnKeyboardActionListener {

    private LinearLayout mInputView;

    @Override public View onCreateInputView() {
        mInputView = (LinearLayout) getLayoutInflater().inflate(R.layout.main, null);
        return mInputView;
    }

...
</code></pre>

<p>but later on when I'm trying to make </p>

<pre><code>LinearLayout LinLayBg = (LinearLayout)findViewById(R.id.LL_total);
</code></pre>

<p>to populate it with buttons, it show</p>

<p>"*The method findViewById(int) is undefined for the type zyz *"</p>

<p>Any ideas? Thanks!</p>
