medyo / Fancybuttons

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

Black buttons that only show text "Fancy Buttons" #117

Closed mikeslinkman closed 6 years ago

mikeslinkman commented 6 years ago

When I add and design a fancy button in my layout file the result that is outputted seems correct. Like the image in this link. However when I build the app to my phone the exact same button looks like the image shown in this link

The button displayed here looks like the following in XML:


    <mehdi.sakout.fancybuttons.FancyButton
        android:id="@+id/btn_login"
        android:layout_width="0dp"
        android:layout_height="0dp"
        app:layout_constraintBottom_toTopOf="@+id/end_middle_button"
        app:layout_constraintEnd_toStartOf="@+id/end_button_width"
        app:layout_constraintStart_toStartOf="@+id/start_button_width"
        app:layout_constraintTop_toTopOf="@+id/start_middle_button"
        fancy:fb_borderColor="#FFFFFF"
        fancy:fb_borderWidth="1dp"
        fancy:fb_defaultColor="#FFFFFF"
        fancy:fb_focusColor="#EEF2F5"
        fancy:fb_radius="30dp"
        fancy:fb_text="LOGIN"
        fancy:fb_textColor="#000000"
        fancy:fb_textSize="18sp">
    </mehdi.sakout.fancybuttons.FancyButton>
pishguy commented 6 years ago

@mikeslinkman whats your version of android you are test on that?

mikeslinkman commented 6 years ago

On the physical device I'm testing on Android 8.1.0

Hanzyusuf commented 6 years ago

same problem, i am using it in 'SwipeRevealLayout' black button with white text 'Fancy Button' android marshmellow

pishguy commented 6 years ago

@mikeslinkman @Hanzyusuf

this version of android is new and we don't test and change core of this library on this version. please wait to release new new version

DeveloperHu commented 6 years ago

@Hanzyusuf same problem,but have you add this? xmlns:fancy="http://schemas.android.com/apk/res-auto" not the xmlns:fancy="http://schemas.android.com/tools"