Create XML file in Drawable
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item >
<layer-list>
<item><shape>
<padding android:right="20dp"/>
<solid android:color="#ffffff" />
</shape></item>
<item><bitmap android:gravity="right" android:paddingLeft="5dip" android:paddingRight="5dip" android:src="@drawable/new_checkbox" />
</item>
</layer-list></item>
</selector>
Put EditText in layout Xml file
<EditText
android:id="@+id/record_fill_address"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:background="@drawable/record_fill_detail_pencil"
android:gravity="left"
android:hint="Enter Description"
android:lines="8"
android:paddingLeft="10dp"
android:textColorHint="#c4c4c4" />
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item >
<layer-list>
<item><shape>
<padding android:right="20dp"/>
<solid android:color="#ffffff" />
</shape></item>
<item><bitmap android:gravity="right" android:paddingLeft="5dip" android:paddingRight="5dip" android:src="@drawable/new_checkbox" />
</item>
</layer-list></item>
</selector>
Put EditText in layout Xml file
<EditText
android:id="@+id/record_fill_address"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:background="@drawable/record_fill_detail_pencil"
android:gravity="left"
android:hint="Enter Description"
android:lines="8"
android:paddingLeft="10dp"
android:textColorHint="#c4c4c4" />
No comments:
Post a Comment