Fancybuttons icon indicating copy to clipboard operation
Fancybuttons copied to clipboard

use iconPaddingStart and iconPaddingEnd

Open shahimclt opened this issue 8 years ago • 1 comments

please consider adding support for RTL layouts. Now, we have to add both right and left padding to preserve spacing in both LTR and RTL layouts, which in turn throws off the center alignment a bit.

shahimclt avatar Sep 12 '17 08:09 shahimclt

For anyone wondering the same thing, here is a temporary fix:

<mehdi.sakout.fancybuttons.FancyButton
        android:paddingEnd="@dimen/activity_horizontal_margin"
        android:paddingStart="0"
        fancy:fb_iconPaddingLeft="@dimen/activity_horizontal_margin"
        fancy:fb_iconPaddingRight="@dimen/activity_horizontal_margin"
        />

Just add an android:paddingEnd to balance the icon's padding in the start.

shahimclt avatar Sep 12 '17 08:09 shahimclt