iink SDK on Device

Answered

Scroll is not working

 I have made a sample code with the below code to enable scrolling for multiple scribbling pad:

 

<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fillViewport="true"
    tools:context=".MainActivity">

</androidx.core.widget.NestedScrollView>

 

When I keep com.myscript.iink.uireferenceimplementation.EditorView inside above code, then the scribbling is not working. But, if I don't use the above code, the scribbling is working.


I want to keep com.myscript.iink.uireferenceimplementation.EditorView inside the scroll view for multiple editor view. Can you please help me with this?


Best Answer

Dear Raju,


thank you for contacting us.


Currently, this is more an Android integration issue. If you cannot write, this would tend to make me think that the layerViews (Background, Model, Temporary, Capture) were not set: https://developer-support.myscript.com/support/discussions/topics/16000025947


Otherwise, to implement a nestedScrollView, you should be able to find some help on the internet:

-https://stackoverflow.com/questions/33962307/framelayout-does-not-match-the-height-of-nestedscrollview/33962667

-https://stackoverflow.com/questions/34409565/android-framelayout-inside-nestedscrollview-takes-full-screen


Best regards,


Olivier




 Dear Oliver,

    Thanks for support. 

   I want another help from you. I want image of scribble area on button click.  How can I get image from  scribble area that I have written?

Thanks -

Raju Sen

Dear Raju Sen,


Currently, you can use the "export_" function, setting as MimeType JPEG or PNG:
https://developer.myscript.com/refguides/interactive-ink/android/1.3/com/myscript/iink/Editor.html#export_-com.myscript.iink.ContentBlock-java.io.OutputStream-com.myscript.iink.MimeType-com.myscript.iink.IImageDrawer-


It can be called as follows: editor.export_(null, ABSOLUTE_PATH_IMAGE, MimeType.PNG, imageDrawer);


Best regards,


Olivier