Using Android Built in drawables.

By | February 7, 2012

This is a simple example showing how to use android built in drawables.

Here I am showing only the xml file.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<EditText
	android:text=""
	android:hint="Search here"
	android:id="@+id/EditText01"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	android:drawableLeft="@android:drawable/ic_menu_search">
</EditText>
<EditText
	android:text=""
	android:hint="Email"
	android:id="@+id/EditText01"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	android:drawableLeft="@android:drawable/ic_dialog_email">
</EditText>
<EditText
	android:text=""
	android:hint="Information"
	android:id="@+id/EditText01"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	android:drawableLeft="@android:drawable/ic_dialog_info">
</EditText>
<EditText
	android:text=""
	android:hint="Send"
	android:id="@+id/EditText01"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	android:drawableLeft="@android:drawable/ic_menu_send">
</EditText>
<EditText
	android:text=""
	android:hint="Media play"
	android:id="@+id/EditText01"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	android:drawableLeft="@android:drawable/ic_media_play">
</EditText>
<EditText
	android:text=""
	android:hint="Add"
	android:id="@+id/EditText01"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	android:drawableLeft="@android:drawable/ic_input_add">
</EditText>
<EditText
	android:text=""
	android:hint="Delete"
	android:id="@+id/EditText01"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	android:drawableLeft="@android:drawable/ic_delete">
</EditText>
<EditText
	android:text=""
	android:hint="Details"
	android:id="@+id/EditText01"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	android:drawableLeft="@android:drawable/ic_menu_info_details">
</EditText>
</LinearLayout>

Please leave your valuable comments on this post.

Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Reply

Your email address will not be published. Required fields are marked *