Issue
I've got the following xml:
<AutoCompleteTextView
android:id="@+id/searchQuery"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
android:drawablePadding="25dp"
android:drawableRight="@drawable/ic_search_black_18dp"
android:ems="8"
android:focusable="true"
android:focusableInTouchMode="true"
android:imeOptions="actionSearch"
android:inputType="text" />
I want to make icon move, but drawablePadding has no effect. What is wrong?
Solution
drawablePadding is padding between the drawable and rest of your widget.
use padding attribute to provide padding around your widget including drawable.

Answered By - Rahul Tiwari
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.