Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old 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
Default 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!

hronik1 is offline  
Reply With Quote
Sponsors
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 08:14 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo