Down or Up events on imageview ?

How i can generate down or up events to imageview ? I want to make custom butons via writing code with images. Push and pull images will compose two states of custom button. How can i make this via images ? Is it Possible ?
Thanks
 

klaus

Expert
Licensed User
Longtime User
Is it Possible ?
Yes !

I did it but with Panels intead of ImagViews.
Panels can get bitmaps like ImageViews but do have a Touch event in B4A which is not the case for ImageViews.
It is possible to add a Touch event to ImageViews with the Reflection library.

Have a look at 5.3.3 Button with tooltip and additional buttons in the User's guide.

Best regards.
 
Upvote 0
Thank you Klaus, it seems reasonable. I'll try these options, and will write results here. But, anyway, directly definition is best every time. Guess these indirect event definitions related by Java language.

Regards.
 
Upvote 0
Top