By Goran Siric on 10/3/2011 3:06 PM

Learn how to create android buttons with image and  text.. Here you will find how to create basic buttons with image and text and how to create button with complex layout using realative layout to define position of text and image controls on the button. 

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: GIMP script for creating Android icons at once
Please help

Error while executing script-fu-save-android-icons:

Error: ( : 32559) Procedure execution of file-png-save2 failed: Could not open path_to_folder /drawable-ldpi/icon.png' for writing: No such file or directory
Re: GIMP script for creating Android icons at once
It didn't work for me. I always get this error message

Error while executing script-fu-save-android-icons:

Error: ( : 53244862) Procedure execution of file-png-save2 failed: Could not open 'C:\Users\dgp\Desktop/drawable-ldpi/fb.png' for writing: No such file or directory
Re: Creating Android button with image and text using relative layout
Maybe a noob question but how can center the text and images within the button?
Re: GIMP script for creating Android icons at once
Thanks for this script, but it doesn't works on windows as it use slash instead of antislash for paths
Re: Creating Android button with image and text using relative layout
Never mind, I can't post suffice it to say, you are doing it the hard way.