hoang8f / android-flat-button

FButton - a flat button library for Android
Apache License 2.0
1.4k stars 327 forks source link

Buttons look very slim on android 2.3 (Paddings are ignored?) #11

Closed ghost closed 10 years ago

ghost commented 10 years ago

Buttons look like they have no padding on Android 2.3.7 (Samsung galaxy SII). any ideas what I'm doing wrong?

Galaxy SII (2.3.7): 2014-07-24 13_52_03-genymotion for personal use - samsung galaxy s2 - 2 3 7 - api 10 - 480x800 480x

HTC One (4.3): 2014-07-24 15_56_23-genymotion for personal use - htc one - 4 3 - api 18 - 1080x1920 720x1280 320d

Button:

    <info.hoang8f.widget.FButton
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:gravity="center"
        android:padding="20dp"
        android:text="@string/signIn"
        android:textColor="@color/white"
        app:buttonColor="@color/fbutton_color_nephritis"
        app:cornerRadius="4dp"
        app:shadowEnabled="false"/>
hoang8f commented 10 years ago

Hi @GNima The minHeight attribute may solve your problem.

       android:minHeight = "45dp"
ghost commented 10 years ago

Hi @hoang8f,

I used paddingTop, paddingBottom etc. separately and it solved the problem. Thanks anyways.

hoang8f commented 10 years ago

:+1: