android - How to highlight a clicked portion of an image and display a description panel -


i trying learn special effects in android. want add image in android application. when user touch on particular portion of image, portion should highlighted , description panel regarding portion displayed (as displayed in example). example posted here

enter image description here

please suggest method can used implementing effect.

this not simple problem.

the simplest solution i'd suggest in implement ontouchlistener x , y position of touch. using motionevent getx() gety() values . compare portions position know 1 highlight.

the effect of displaying highlights on portions can achieve placing invisible pictures on top of main 1 (that represent highlighted portion in highlight color on transparent background, see mean?) , set them visible on user selection. description panel can included in invisible image or invisible layout set visible on selection (for example included in popupwindow or so...)


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -