medyo / Fancybuttons

Icons, Borders, Radius ... for Android buttons
1.77k stars 397 forks source link

how to setTextGravity in xml #96

Open fiona0419 opened 7 years ago

fiona0419 commented 7 years ago

the attribute "fb_textGravity" can't work in xml but code.

pishguy commented 6 years ago

@fiona0419 in LTR? or supporting RTL? you must inside java code to set gravity for text

medyo commented 6 years ago

Hi @fiona0419,

Could you share with us a sample of your code?

rjhsmile commented 6 years ago

fb_textGravity can't work? are you method ?

diogojg commented 6 years ago

Still not fixed in version 1.8.4

pishguy commented 6 years ago

@diogojg please share your code

diogojg commented 6 years ago
<mehdi.sakout.fancybuttons.FancyButton
                android:layout_width="match_parent"
                android:layout_height="@dimen/material_baseline_grid_8x"
                app:fb_textGravity="left"
                app:fb_text="Text" />