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


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old June 17th, 2010, 09:50 AM   #1 (permalink)
Junior Member
 
Join Date: May 2010
Posts: 15
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Add Button to SurfaceView

Is there any way to add a button to a SurfaceView? Ie: I have a class which extends SurfaceView, and I was hoping in my draw routine I could do something like

PHP Code:
Button button = new Button(getContext());
button.draw(myCanvas); 
I've tried various things like this, but although I get no errors, nothing renders to the screen.

Am I barking up the wrong tree?

Thanks

safibaba is offline  
Reply With Quote
Sponsors
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Draw on canvas (SurfaceView) hollowback Application Development 2 April 4th, 2012 09:24 PM
Drawing Linear Layout on SurfaceView XxAP0STLExX Android Applications 0 December 4th, 2010 07:16 PM
Draw on SurfaceView(VideoPlayer) Canvas sapegas Application Development 0 November 4th, 2010 01:03 AM
Redrawing a portion of a surfaceView ophanin Application Development 1 July 20th, 2010 09:29 AM
surfaceview setbackgrounddrawable() mrqs Application Development 1 March 19th, 2010 11:22 AM



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