so, @ moment have button looks first image above. how reduce padding around text inside button (to more second image)?
layout width , height set as:
android:layout_width="match_parent" android:layout_height="wrap_content"
the custom style shape has parameters"
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" android:padding="10dp">
with rest being color attributes , radii values.
just make clear, want frame of button hug "login" text closer.
all , feedback appreciated. thanks.
it took me forever find "padding" around text in button isn't padding @ all. default widget.button style includes minheight property. changing minheight on button allow adjust padding expected.
<button android:id="@+id/header" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/test" android:textcolor="@color/black" android:minheight="40dip"/> <style name="widget.holo.button" parent="widget.button"> <item name="android:background">@android:drawable/btn_default_holo_dark</item> <item name="android:textappearance">?android:attr/textappearancemedium</item> <item name="android:textcolor">@android:color/primary_text_holo_dark</item> <item name="android:minheight">48dip</item> <item name="android:minwidth">64dip</item> </style>
Comments
Post a Comment