1) The diagram has to be stored as an image in the drawable resources as image. Then we pull the image through drawable:
private ImageView imgView; // use the ImageView class of android
imgView = (ImageView) findViewById(R.id.imageViewId); // R.id.imageViewid represents ur image in the drawable folder
imgView.setImageResource(R.drawable.imageFileId); // Set the view as the image required.
2) How would you ask the user to label in a big diagram?
Ok this issue can we tackled in many ways depending upon the needs.
a) We can use tags A,B,C,D on the image and ask the user to input the answer through a drop-drop menu:
For Example, if the question is Label A:
we can have a drop down menu for the answers.
b) If the user has to drag the word and place it on the diagram only, then we have to pre-determine the co-ordinates 'x' and 'y' on the ImageView of the correct answer. When the user drags the correct tag(which already has the pre-determined x,y stored in it) to the appropriate location only then will the answer be counted.
Again both the above depends on how big the diagram is. If the diagram is bigger, we have to support pinch-in and zoom techniques through the following class:
3) How would you validate if the labelling is correct?
a) In case (a) above, its very simple, if the user chooses the right option from the drop down menu, its correct.
b) Explained above, if co-ordinates stored match the current co-ordinates ( with +- 5% error ) its correct.
Hopefully, this technique will work. Looking forward about your opinion.
Thanking You,
Manu Kothari