Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android material design - How do I place a breadcrumb (navigation) in the toolbar?

I am trying to figure out how to create a breadcrumb in my android app's (material design) toolbar.

This can be seen in the latest Dropbox android application, in which the breadcrumb is used to display the navigation of the files.

I have also found an image (which I took from another similar question), which can be seen here:

enter image description here

Can you guide me on how I can do this?

like image 755
thoughtful-coder Avatar asked Jul 01 '15 12:07

thoughtful-coder


People also ask

How do you make breadcrumbs navigation?

Step 1: We simply add aria-label=”breadcrumb” to the nav element. Step 2: We next add class=”breadcrumb-item” in the list elements. Step 3: Add class=”breadcrumb-item active” in the current list element.

What are Android breadcrumbs?

What are automatic breadcrumbs? Android breadcrumbs will show you a timeline of navigation events and system broadcasts leading up to the crash being detected by Bugsnag. This timeline of breadcrumbs makes it easy to see how your user interacted with your app and how it might have triggered a crash.


1 Answers

I don't think you need a library. If you create a View (maybe a FrameLayout) and then you set it as background the same color of the Toolbar and then you put a TextView inside it, then it's done. You even can extend the TextView class and override some methods to animate the change. You can pass the current String of the breadcrumb via intents between activities and then each knows how to update it.

like image 179
Joaquin Iurchuk Avatar answered Jan 16 '23 12:01

Joaquin Iurchuk