android - Scaling a drawable inside a button? -
currently drawable scales it's normal size, want fit inside button. here's picture of how looks now:
here xml button:
<linearlayout android:layout_width="wrap_content" android:id="@+id/linearlayout2" android:layout_height="40dp" android:layout_weight="0.4" android:gravity="right|center_vertical" android:paddingright="5dp"> <button android:id="@+id/button1" android:background="@drawable/refresh" android:layout_height="25dp" android:layout_width="150dp" android:text="@string/buttonsearchagain" android:drawableright="@drawable/refresh_48"></button> </linearlayout>
so want this:
is there way can shrink drawable?
recreate image. keep image size in pixels reduce size of arrow , make rest transparent. that's bet anyway =)
Comments
Post a Comment