GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Always Show Labels

Always Show Labels

Jump to bottom
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.

Clone this wiki locally

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.