Bubble ZOO Escape Anouncement

  Hi folks! I am proud to present: 
Bubble Zoo Escape, my first Android game built using AndEngine 
If you have a time, please download and give feedback!

Android default icons

Oct 10

Written by: Goran Siric
10/10/2011 9:36 AM  RssIcon

If you are new to Android it is good to know that there are some default icons in Android you can use in your own applications. 

There are two ways you can use them in your application:

1. You can use them in your code or in your XML layouts using android.R.drawable class.
2. You can make local copies of standard Android resources and use them in your projects


Example of using android resources with android.R.drawabale class

image.setImageResource(android.R.drawable.btn_star)

or in XML layout:

android:src="@android:drawable/btn_star"


If you want to make local copy of any resource go to folder where Android SDK is installed. On my system it is C:\Program Files\Android\android-sdk. Here you will se \platforms subfolder which contain one subfolder for each anroid platform version (\android-3, \android-4, \android-7, etc). Each android platform versions folder contain \data\res subfolder from which you can make local copy of resources.

According to Android Icon Design Guidelines it is better to make local copy of resources because resources can change between platform version. In that way you can maintain control over the appearance of your icons, even if the system's copy changes

Here are some useful pages where you can see default android icons and its resource identifiers.

http://since2006.com/android/2.1-drawables.php
http://www.darshancomputing.com/android/1.5-drawables.html
http://developer.android.com/reference/android/R.drawable.html



Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
CAPTCHA image
Enter the code shown above in the box below
Add Comment   Cancel 

Bubble Zoo Escape

  Hi folks! I am proud to present: 
Bubble Zoo Escape, my first Android game built using AndEngine 
If you have a time, please download and give feedback!

Search Blog

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

Featured articles

AndEngine - Textures tips and tricks

What you should know abot textures before get started programming your first game.

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

Unity start guide
AndEngine - Textures tips and tricks
Calculated variables
Comments about Parking SMS Scheduler
Comments about cities and parking zones
Android "DataEntry ListView" Design Pattern
Android application and the Internet

Recent Comments

Re: Calculated variables
It looked fascinating and I chose to investigate each substance and I read yours. My compliment about this blog is exceptionally positive I visit this blog first time and inspire by this good stuff work. Incredible post keeps up posting such great information. You can use this best essay writing service for any kind of academic writing work.
Re: AndEngine - Textures tips and tricks
I chose to investigate each substance and I read yours. My compliment about this blog is exceptionally positive I visit this blog first time and inspire by this good stuff work. Incredible post keeps up posting such great information. You can use this best essay writing service for any kind of academic writing work.
Re: Creating Android button with image and text using relative layout
Hi Shameel,try to use ImageView android:scaleType property in xml button layout:

android:scaleType="centerInside"

For more info see: developer.android.com/reference/android/widget/ImageView.ScaleType.html
Re: Creating Android button with image and text using relative layout
Hi bro,

Can u tell me how to set the size of icon according to our requirement in button ?

Actually my icon size is 256x256 and i want 20x20 ???
Re: Creating Android button with image and text using relative layout
Hi dude, i have also find out one good example

How To Create Button