1. Check out our app, Forums for Android! Download and leave feedback here!

Add Button to SurfaceView

Discussion in 'Application Development' started by safibaba, Jun 17, 2010.

  1. safibaba

    safibaba Member
    Thread Starter
    15

    May 3, 2010
    15
    0
    15
    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:
    1. Button button = new Button(getContext());
    2. 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
     

    Advertisement

Share This Page

Loading...