On Thu, Sep 9, 2010 at 3:38 AM, Mohammad Nasserzadeh
<[email protected]> wrote:
> I am using SurfaceView to draw my game on the screen of the phone. Basically
> now I want to be able to draw Android Views on my View, such as a Button or
> ListView...
>
> I am simlpy getting a Canvas and then I draw on that... does anybody know
> how to draw AndroidViews (Button, ListView....) on my Canvas?

You might want to consider putting the SurfaceView in a
RelativeLayout, then putting the other Buttons and such as later
children in the RelativeLayout. Later children are drawn over top of
earlier children on the Z-axis.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://skillsmatter.com/go/os-mobile-server

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to