简体   繁体   English

Android浮动操作菜单自定义视图

[英]Android floating action menu custom view

I am using https://github.com/futuresimple/android-floating-action-button for my floating action menu. 我将https://github.com/futuresimple/android-floating-action-button用于浮动操作菜单。 I am trying to add text to the left of the menu just like inbox. 我正在尝试像收件箱一样在菜单的左侧添加文本。 Since the menu is a custom view which handles its expanding and collapsing, what would be the best way to add text? 由于菜单是处理其展开和折叠的自定义视图,因此添加文本的最佳方法是什么?

Optional labels are now available (since v1.3.0 from Dec 8, 2014): 现在提供了可选标签(自2014年12月8日起为v1.3.0):

<com.getbase.floatingactionbutton.FloatingActionsMenu
    ...
    fab:fab_labelStyle="@style/menu_labels_style">


<com.getbase.floatingactionbutton.FloatingActionButton
    ...
    fab:fab_title="Your Title" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM