mercredi 27 mai 2015

How to set onTouch for a layout(XML) that is added via inflation?

I'm trying to get control buttons to pop on/off screen when the screen is tapped. They will overlay a video. The problem I'm running in to is how to create a touch event for a layout that has been inflated.
The routine is as follows:
1) set initial content to the video;
2) inflate layout(XML), that contains the controls, over the top of the video;
3)(NEED TO DO) create onTouch event for the newly inflated layout that hides/shows the buttons when the user taps the screen.

Thanks for any help!

Aucun commentaire:

Enregistrer un commentaire