• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Implementing a soft D-pad

hronik1

Lurker
Hey all,

I am creating an app an would like to but an on screen d-pad on it. In my xml file i was able to create the correct layout using a nested linear/relative layout, an set the respective buttons onClick functions in my xml and define the functions in my main activity.

However, I would to also provide additional functionality for the release of the button, but am unaware of how to do so. I see that button interfaces keyevent.callback, which has an onKeyDown() and onKeyUp() method. It appears that button has a really simple interface to the onKeyDown(), but not to the onKeyUp().

Sorry for the rambling, it just seems like something that should be very simple but I am feeling very stupid for not being able to figure it out!

Thanks in advance!
 
Back
Top Bottom