FloatingActionButton with text instead of image

后端 未结 9 1206
说谎
说谎 2020-12-01 00:09

I\'m trying to figure out how can be modified FloatingActionButton from android support library. Can it be used with the text instead of image?

Something like this o

9条回答
  •  被撕碎了的回忆
    2020-12-01 00:28

    You can't set text for FloatingActionButton from the support library, but what you can do, is create a text image directly from android studio : File -> New -> Image Asset, and then use it for your button.

    In the terms of Material Design; they didn't mention using text with FloatingActionButton, and I don't see any reason for doing that since you don't really have much space for a text.

提交回复
热议问题