Stretching and Spanning layouts in Android

When I was working on my BF2Stats Android app, I had to find out how to place 2 widgets/layout elements on the same horizontal line, while keeping them stretched at the same time so they are filling the width of the screen. It took me a little research before I found a solution, so I will share two methods with you today. This tutorial will show you how to create layouts that stretches in the width. In Eclipse I

» Read more

Formatting Android XML files in Eclipse

The XML auto formatting in Eclipse ADT is currently not working properly. When I am working on Android apps with big XML layout files in Eclipse ADT, the XML tends to get a little cluttered, and sometimes the many attributes ends up on one single line like this: With attributes on one line. It Looks bad, and has low readability. This makes reading the XML layout far more difficult than if they were all ligned up properly below each other.

» Read more