Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do I minimize space between text and image in button?

Tags:

android

this is my code below which shows the image in button is work fine but I want to minimize space between image and button. how do I do that?

please help me how I minimize space between image and text. this is my image URL http://imgur.com/Jmvqe

<Button android:id="@+id/MyAccountbutton"
        style="?android:attr/buttonStyleSmall"
        android:layout_height="25dip"
        android:layout_width="fill_parent"
        android:layout_marginRight="55dip"
        android:layout_marginLeft="55dip"
        android:drawableLeft="@drawable/handshake"
        android:paddingLeft="10dip"
        android:background="@drawable/curvedplanebutton"
        android:textColor="@drawable/button_text_color"
        android:layout_marginTop="15dip"
        android:text="Payments"/>
like image 650
Hayya ANAM Avatar asked Jan 04 '13 11:01

Hayya ANAM


1 Answers

Play with android:drawablePadding=" ". You may need to set a negative value.

like image 77
Andy Res Avatar answered Oct 20 '22 22:10

Andy Res