Thursday, June 2, 2011

[android-developers] Regarding widgets and ondraw()

Hi
I am making an application where I am using MyView class which is
extending view and through which I am drawing a Bitmap and some touch
events.Now I want to add some android widgets into that view like
Button TextView and EditText but problem is I am setting the object of
MyView class as setContentView(new MyView(context)) problem is I am
not able to render TextView,buttons and EditText through OnDraw
function.I need to know what is the correct way of rendering
Button,TextViews and other widgets in case like above.

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

No comments:

Post a Comment