nativescript-community / nativescript-drawingpad

:pencil: NativeScript plugin to provide a way to capture any drawing (signatures are a common use case) from the device
Apache License 2.0
90 stars 32 forks source link

Dynamically show or embed a word into the Drawingpad? #41

Closed shilik closed 6 years ago

shilik commented 6 years ago

@bradmartin I just wonder that if it is possible to dynamically show or embed a word into the pad? An attribute like "text" that allows users to designate the background content of drawingpad. As a language teacher, I hope that a learner can hand-draw the word based on what is shown on the pad. Thank you very much.

shilik drawing_trail

bradmartin commented 6 years ago

Not sure of all the functionality you're looking for. However, if you just want to indicate what the user should be drawing, you could very likely achieve it with something like the following:

<gridlayout rows="*" columns"*">
   <Image src="someImage" row="0" col="0" verticalAlignment="middle" horizontalAlignment="center"  />
   <DRAWINGPAD row="0" col="0" verticalAlignment="middle" horizontalAlignment="center"  />
</gridlayout>

The key being positioning both view on the same row/col in the grid, and then aligning them so that the 'drawingpad' is on "top" of the image that is initially rendered.