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.

 

Leave a Reply

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

 

 

 

Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.