November 11th, 2011, 04:16 PM
|
#1 (permalink)
|
|
New Member
Join Date: Oct 2011
Posts: 2
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
|
Implementing a soft D-pad
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!
|
|
|