in Android Code Tips

Android UI Layout tips

Today, while I was surfing the (of course through their RSS feeds) I found an interesting article named Introduction to Android UI Layouts. (link)

It was an introduction and I consider myself “already introduced” to UI Layouts but I decided to read it.
Hopefully I noticed a very useful piece of code that I didn’t know that could be done:


It seems that layout_gravity parameter can take 2 arguments, separated by the pipe.

Thank’s :)

Another interesting tip that many android developers do not know and I would like to notice, is that the easiest way to have overlapping views is to use the the Frame Layout.

One more to go, Absolute Layout is deprecated and SHOULD NOT BE USED!!!