CODEX

Android Material Navigation Rail

A first look at the new Material Android library component

Yanneck Reiß
CodeX
Published in
4 min readMar 1, 2021

--

Foto von Harrison Haines von Pexels

The recently published Android material library version 1.4.0-alpha01 includes updates to various Material components. For example multiple bug fixes for the new ProgressIndicator of which I just wrote an article about.

But besides these updates, this library version also includes an early outlook at the upcoming exciting the NavigationRail component.

The Navigation rail acts as a side navigation component or sidebar and can hold from three, up to seven destination views. Each view consists of an icon and a respective label, just as we know it from the Bottom view. In contrast to the Bottom view, it is aligned vertically and can also be used in combination with a NavigationDrawer.

To test out the NavigationRail component in your project, make sure you have the following dependency included:

Afterwards, create a new layout file or just add the NavigationRailView to one of your existing layouts…

--

--

Yanneck Reiß
CodeX

Follow me on my journey as a professional mobile and fullstack developer