Demo on integration with Panels for Android

is it possible to use Panels from Application Toolkit, in other words, in our application we want to use only EditText without customization anything inside our application, but once click on the EditText we want to show MyScript Writable area instead of default keyboard. is it demo application available for showcasing this type of implementation

1 Comment

Yes, you can do it like it is in the sample application, but you may have to implement a kind of com.visionobjects.textwidget.sample.view.CustomEditText (that extends EditText) to synchronize the cursor position between input field and writing area. By the way, it’s up to you to define the feature you want to support.

You can prevent the default input method to pop up with :
`// hide soft keyboard if it is currently shown
InputMethodManager manager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
manager.hideSoftInputFromWindow(mEditText.getWindowToken(), 0);`

You can also overwrite the EditText#onCheckIsTextEditor by making it return “false”

Login or Signup to post a comment