zendesk / android-floating-action-button

Floating Action Button for Android based on Material Design specification
Apache License 2.0
6.38k stars 1.46k forks source link

Labels not showing in fragment #247

Open martipello opened 9 years ago

martipello commented 9 years ago

Made a new project added fab menu everything works fine buttons are white labels are showing, copied the same code to my actual project styles themes and colours and all, and the button is blue and the labels will not show, its in a fragment but I'm not sure if this is the issue,

oscar-urbina-tech commented 9 years ago

I was having same issue until i noticed that i need to modify my styles.xml with this:

<style name="menu_labels_style">
    <item name="android:background">@drawable/fa_label_background</item>
    <item name="android:textColor">@color/white</item>
</style>
NikhilBorad commented 9 years ago

make changes in fab_label_background.... write shape tag in item tag...

martipello commented 9 years ago

Yeah me too sorry should have updated this On 9 Sep 2015 12:10, "Nikhil Borad" notifications@github.com wrote:

make changes in fab_label_background.... write shape tag in item tag...

— Reply to this email directly or view it on GitHub https://github.com/futuresimple/android-floating-action-button/issues/247#issuecomment-138877820 .

NikhilBorad commented 9 years ago

Thank u @martipello

JubrilEdu commented 8 years ago

I'm having this same issue can anyone please point me in the right direction,setLabel has not been working

martipello commented 8 years ago

Sorry I can't quite remember how I fixed it but pretty sure it was my problem and not futuresimples I think it inherits from your primary and secondary colours and I'm fairly certain the text labels were a similar styles issue, as I did eventually get it to work, keep trying I guess sorry for not being much help On 27 Feb 2016 16:50, "djubreel" notifications@github.com wrote:

I'm having this same issue can anyone please point me in the right direction

— Reply to this email directly or view it on GitHub https://github.com/futuresimple/android-floating-action-button/issues/247#issuecomment-189681193 .