By Goran Siric on 2/28/2012 9:59 PM

If you recently started to develop applications for the Android platform (or any other mobile platform) it is likely that you will encounter the problem of designing user interfaces. Have you realized the importance of ListView control in developing android applications? That is what I learned the hard way. Don't allow this to happen to you too.

Search Blog

If you found this useful,
you can buy me a coffe :)
By me a coffe through PayPal :)

Featured articles

Android "DataEntry ListView" Design Pattern

Have you realized the importance of ListView control in developing android applications ?

GIMP script for creating Android icons at once

Script for creating Android icons for different screen resolutions at once. Icons can be saved using standard Android icons naming conventions and saved in appropriate folders.

Creating Android button with image and text using relative layout

Source code with examples how to use relative layout to create nice buttons with text and images in Android

Android application and the Internet

Tutorial about connecting to the web pages on the Internet from Android application, using both POST and GET web requests.

Recent Entries

Comments about Parking SMS Scheduler
Comments about cities and parking zones
Android "DataEntry ListView" Design Pattern
Android application and the Internet
Keep my DNN site alive
Android default icons

Recent Comments

Re: How to check if your android application is running in debug or release mode ?
Such a nice article. Exactly the thing I was looking for. Thank you very much Goran Siric.
Re: Creating Android button with image and text using relative layout
In code I am using:

Button bt = new Button(context);
this.setBackgroundDrawable(bt.getBackground());

to set drawable background for button. This way button looks like standard android button.
You can call setBackgroundDrawable() in code to change current button drawable(states).
If you want to set background drawable in xml resource files, then you can sliglty change code to not use this two lines of code if background drawable is allready set.
Re: Creating Android button with image and text using relative layout
awesome example and easy to follow. how do I set button states such as on button pressed, button focused and change the background color?
re:
I like your post a lot! You should write some more on this!Great job coming with such terrific post!


mocsbar.com
Re: Creating Android button with image and text using relative layout
Your icon must have transparent background. It's best to save icon in .PNG format with transparent background.