Fancybuttons icon indicating copy to clipboard operation
Fancybuttons copied to clipboard

how to setTextGravity in xml

Open fiona0419 opened this issue 6 years ago • 6 comments

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

fiona0419 avatar Aug 22 '17 09:08 fiona0419

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

pishguy avatar Sep 25 '17 07:09 pishguy

Hi @fiona0419,

Could you share with us a sample of your code?

medyo avatar Oct 10 '17 20:10 medyo

fb_textGravity can't work? are you method ?

rjhsmile avatar Mar 07 '18 04:03 rjhsmile

Still not fixed in version 1.8.4

diogojg avatar Jul 26 '18 15:07 diogojg

@diogojg please share your code

pishguy avatar Jul 26 '18 18:07 pishguy

<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" />

diogojg avatar Jul 26 '18 19:07 diogojg