Android: How to trigger Button View OnClickListener()

This method will work on any view, not just the Button view since it exists on the View base class.

All you have to do is call the View.performClick() method and it'll trigger whatever OnClickListener you've set in View.setOnClickListener().

Source

 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog