-
Notifications
You must be signed in to change notification settings - Fork 236
Always Show Labels
Alessandro Crugnola edited this page Nov 23, 2016
·
1 revision
Even if the material design guidelines specify that
If there are four or five actions, display inactive views as icons only
there's the possibility to override this behavior by using bbn_alwaysShowLabels
attribute in the menu itself.
For instance, this menu:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/colorPrimaryDark"
app:bbn_alwaysShowLabels="true"
app:bbn_itemColorActive="@android:color/white"
app:bbn_itemColorDisabled="#33ffffff"
app:bbn_itemColorInactive="#99ffffff"
app:bbn_rippleColor="#ccffffff">
<item
android:id="@+id/bbn_item1"
android:icon="@drawable/ic_cloud_off_white_24dp"
android:title="Cloud Sync" />
<item
android:id="@+id/bbn_item2"
android:icon="@drawable/ic_cast_connected_white_24dp"
android:title="Chromecast" />
<item
android:id="@+id/bbn_item3"
android:icon="@drawable/ic_mail_white_24dp"
android:title="Mail" />
<item
android:id="@+id/bbn_item4"
android:icon="@drawable/ic_format_list_numbered_white_24dp"
android:title="List" />
</menu>
will display a bottom menu with 4 items (fixed type) all with labels.
This feature has been introduced since version 2.0.0.