title: Custom keyboard unable to write into TextView
body: <p>I'm new to Android studio, curently I'm trying to build a custom keyboard within an app(Not Service Keyboard), I manage to done it by referring online resources, but when I try to switched from editText to TextView, my keyboard input just unable to write into the TextView, is there a different method for TextView?</p>
  
  <p>I tried something like textView.setText(InputType.TYPE_CLASS_TEXT);
  The app just forced stop in this situation. </p>
  
  <p>This is the editText that works fine.</p>
  
  <pre><code>EditText editText = (EditText) findViewById(R.id.editText);  
  myKeyboard keyboard = (myKeyboard) findViewById(R.id.keyboard);
  
  editText.setRawInputType(InputType.TYPE_CLASS_TEXT);
  editText.setTextIsSelectable(true);
  
  InputConnection inputConnection = editText.onCreateInputConnection(newEditorInfo());
  keyboard.setInputConnection(inputConnection);
  </code></pre>
  
  <p>Code below TextView has no respond while pressing on my keyboard.</p>
  
  <pre><code>TextView textView = (TextView) findViewById(R.id.textView);  
  myKeyboard keyboard = (myKeyboard) findViewById(R.id.keyboard);
  
  textView.setRawInputType(InputType.TYPE_CLASS_TEXT);
  textView.setTextIsSelectable(true);
  </code></pre>
  
  <p>This is the code that I have tried but app forced stopped.</p>
  
  <pre><code>TextView textView = (TextView) findViewById(R.id.textView);
  myKeyboard keyboard = (myKeyboard) findViewById(R.id.keyboard);
  
  textView.setText(InputType.TYPE_CLASS_TEXT);
  </code></pre>
  
  <p>For your information, the online resource that I referred to is at <a href="https://stackoverflow.com/questions/9577304/how-to-make-an-android-custom-keyboard/45005691#45005691">How to make an Android custom keyboard?</a>
  Thanks in advance.</p>