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
Post a Comment