How to remove drawable image from edittext through code in android -


i have placed image in edit text following code

<edittext     android:id="@+id/searchfilter"     android:layout_height="wrap_content"     android:layout_width="fill_parent"     android:hint="enter search keyword"     android:drawableright="@drawable/ic_launcher"/> 

i need hide image through java code

thanks in advance

try folloing code

edittext.setcompounddrawableswithintrinsicbounds(0,0,0,0); 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -