Re: [android-developers] Re: Nested layouts in separate XML

2011-02-02 Thread TreKing
On Wed, Feb 2, 2011 at 3:19 AM, MerlinBG wrote: > however it is hard to find, no reference in the Dev Guide either. Not sure what you mean there's no reference. Besides sample I linked you to, this is clearly documented in the layouts section: http://developer.android.com/guide/topics/resources

Re: [android-developers] Re: Nested layouts in separate XML

2011-02-02 Thread MerlinBG
Well, thanks for the link, this seems to work fine. However - about the reopening the 2 years old thread - searching only provided obsolete results, most referring to the technique Selmi gave a link above. I am glad this changed meanwhile, however it is hard to find, no reference in the Dev Gui

Re: [android-developers] Re: Nested layouts in separate XML

2011-02-01 Thread TreKing
On Tue, Feb 1, 2011 at 12:15 AM, MerlinBG wrote: > I am really surprised to see this thread! > I'm really surprised you re-opened a 2-year old thread! > I have googled how to nest XML-based layouts, assuming it is possible, > however found this. > You may also find this: http://developer.andr

[android-developers] Re: Nested layouts in separate XML

2011-01-31 Thread MerlinBG
I am really surprised to see this thread! I have googled how to nest XML-based layouts, assuming it is possible, however found this. This is a basic functionality, guys. There are some threads around about why to use XML based layouts, MVC, etc... and I agree that extracting the view in XML is

[android-developers] Re: nested layouts

2010-08-02 Thread David
I would suggest using the gravity attribute. If the layout fills the parent, then you should be able to use the gravity "bottom" I think. I would change to a LinearLayout for the top level element and make sure it fills the parent. Also, you can accomplish the spacing you need by using padding/marg

[android-developers] Re: nested layouts

2010-08-02 Thread David
I would use a LinearLayout as the base. You should be able to accomplish what you want by using the gravity attribute. Try setting it to "bottom" I think. Make sure that the layout that it is in is set to "fill parent". If you use the gravity (not Layout gravity), and a linear layout, you have to h