SignatureComponent

17 views
Skip to first unread message

Bryan Buchanan

unread,
Oct 10, 2016, 8:47:47 PM10/10/16
to CodenameOne Discussions
I've adapted the code from the SignatureComponent (see Form2.java), which works fine. I've also tried some native Android code -

http://www.mysamplecode.com/2011/11/android-capture-signature-using-canvas.html

They both work pretty much the same, but the native Android code is noticeably more responsive (on a Nexus 7).  The SignatureComponent code looks pretty simple, so I guess there's maybe nothing to be done to make it work a little bit smoother ?

Bryan Buchanan

unread,
Oct 10, 2016, 9:18:45 PM10/10/16
to CodenameOne Discussions
Forgot the code.
Form2.java

Shai Almog

unread,
Oct 10, 2016, 10:57:36 PM10/10/16
to CodenameOne Discussions
Do you see the lack of responsiveness in the SignatureComponent too?

Bryan Buchanan

unread,
Oct 11, 2016, 12:42:17 AM10/11/16
to CodenameOne Discussions
I wouldn't say it's a lack of responsiveness, it's just not _as_ responsive as the native code.

The SignatureComponent seems about the same as my component (which you'd hope as it's exactly the same code).

It's not really an issue - on a fast, newish tablet the difference is probably not noticeable.
Reply all
Reply to author
Forward
0 new messages