android - how to remove button space alocated for text drawableTop -
<button android:id="@+id/profile" style="@style/dashboardbutton" android:drawabletop="@drawable/abarprofile"/> <style name="dashboardbutton"> <item name="android:layout_gravity">center_vertical</item> <item name="android:gravity">center_horizontal</item> <item name="android:layout_width">wrap_content</item> <item name="android:layout_height">wrap_content</item> <item name="android:paddingleft">10dp</item> <item name="android:paddingright">10dp</item> <item name="android:background">@null</item> </style>
is there way make icon wrap content?to take out space below text disregard space on left , right need space icon space between each other don't need space below , above image how can take out.i able take out space above cant take out space below how can this?
yes, can remove space @ bottom of button using perfect height of button android:layout_height="40dip"
lyaout code
<button android:id="@+id/tvquickcontactcall" android:layout_width="wrap_content" android:layout_height="40dip" android:layout_marginright="15dip" android:background="@android:color/transparent" android:drawabletop="@drawable/ic_call" android:layout_weight="1" />
graphical layout
Comments
Post a Comment