Add Button to SurfaceView


Last Updated:

  1. safibaba

    safibaba Member This Topic's Starter

    Joined:
    May 3, 2010
    Messages:
    15
    Likes Received:
    0
    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...