I am beginner to android development and I am developing small android application. In my application I m using button. but contains image and text. everything is working fine only thing is that my text displayed at center of button and image at end of button what I want image and text both at center .. My Button code looks like ...
<Button
android:id="@+id/signup_button"
android:layout_width="match_parent"
android:layout_height="48dip"
android:layout_marginTop="15dip"
android:layout_marginLeft="1dip"
android:background="@drawable/help_screen_buttons"
android:text="Sign up"
android:textColor="@color/maroon_font"
android:alpha="0.8"
android:textSize="22dip"
android:drawableLeft="@drawable/tw_br"/>
He I am only able to set image at left right top bottom position but not at center .. S how to display that image and text at center of button... Need help... thank you...