Thursday, April 12, 2012

Re: [android-developers] XML layout and Views

When I edit the graphic layout, the editor automaticly add setcontentview(r.layout.main).
Ok...

and I know that if I want to displays Views that I created I should use setcontentview(MainView).
Ok...

How do I display both?
You don't... You choose one or the other.  They are overloaded methods that do the same thing.

http://developer.android.com/reference/android/app/Activity.html#setContentView%28android.view.View%29
http://developer.android.com/reference/android/app/Activity.html#setContentView%28int%29

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Apr 11, 2012 at 2:46 PM, yyyogev <yyyogev@gmail.com> wrote:
Hi
When I edit the graphic layout, the editor automaticly add setcontentview(r.layout.main). and I know that if I want to displays Views that I created I should use setcontentview(MainView).

How do I display both?

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

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