Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drawable padding doesn't work

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?

like image 978
Tony Avatar asked Sep 29 '15 07:09

Tony


1 Answers

drawablePadding is padding between the drawable and rest of your widget. use padding attribute to provide padding around your widget including drawable. drawable

like image 129
Rahul Tiwari Avatar answered Nov 30 '22 16:11

Rahul Tiwari