Tag Archives: layout

How to center a Button in an Android Layout?

In my last Android Training several people asked how they could center a single view, e.g. a Button, so I assume it is worth a short blog entry. If you have a single Button in your Activity and you want … Continue reading

Posted in Android | Tagged , | Comments Off

Android – Hacking layouts

One common mis-understanding seem to be that Android starters seem to think that a layout can only be defined via a XML resource. While this is the most common way of defining a layout in most cases you can also … Continue reading

Posted in Android | Tagged , , | 7 Comments

Android – Making efficient layouts

Android Programming is a lot about efficiency to have snappy user interfaces. The Android SDK provides two nice tools to help building efficient UI’s. In the tools directory you find the tools: layoutopt and hierarchyviewer. layoutopt is a command line … Continue reading

Posted in Android | Tagged , , , | 1 Comment