babu wrote:
> Currently, I am creating a custom View class (DrawView) that inherits
> the View class and adding to my activity programatically by using
> RelativeLayout and LaoutParams etc. But is there an easier way to do
> this by adding my DrawView to the layout XML file?

You can put your DrawView in the layout XML file. You just have to
specify the full class name with Java package (e.g.,
com.foo.android.DrawView) rather than just the bare class name like you
can with the android.widget.* namespace.

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

_Android Programming Tutorials_ Version 1.0 Available!

-- 
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