medyo / Fancybuttons

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

some settings not working on my layout #88

Closed pishguy closed 7 years ago

pishguy commented 7 years ago

in this below xml layout:

   <mehdi.sakout.fancybuttons.FancyButton
       android:id="@+id/menu_test"
       android:layout_width="0dp"
       android:layout_height="match_parent"
       android:layout_weight="1"
       android:paddingBottom="10dp"
       android:paddingLeft="20dp"
       android:paddingRight="20dp"
       android:paddingTop="10dp"
       fancy:fb_defaultColor="@android:color/transparent"
       fancy:fb_focusColor="@color/colorPrimary"
       fancy:fb_fontIconResource="&#xf04b;"
       fancy:fb_iconPosition="left"
       fancy:fb_radius="0dp"
       fancy:fb_text="SHUFFLE PLAY"
       fancy:fb_textColor="#FFFFFF"
       fancy:fb_textGravity="right"/>

some attributes such as fb_fontIconResource, fb_textGravity not working, i dont show any icon with text and i can't set gravity for text

please see this screen shot:

http://rupload.ir/upload/drcd0lrjyf200q4877t.png