Clans / FloatingActionButton

Android Floating Action Button based on Material Design specification
Apache License 2.0
5.23k stars 1.13k forks source link

setLabelText is not working!!! #456

Open kotran88 opened 6 years ago

kotran88 commented 6 years ago

image clicked

as above, even though I set Text on floatingactionbutton, text is not shown,

my code is as belows. I don't think code is problem because I get it from example code in here.

ContextThemeWrapper context = new ContextThemeWrapper(ccontext, R.style.MenuButtonsStyle); FloatingActionButton programFab2 = new FloatingActionButton(context); programFab2.setLabelText("Programmatically added button"); programFab2.setImageResource(R.drawable.addicon);

                               ` actionMenu.addMenuButton(programFab2);`