Android的材料设计重复工具栏例如面包屑 [英] Android material design replicate toolbar breadcrumbs example

查看:244
本文介绍了Android的材料设计重复工具栏例如面包屑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图复制面包屑例如:

I'm trying to replicate the breadcrumbs example:

据我已经收到如添加TextViews到工具栏,但不能完全复制工具栏的风格的字体/大小/颜色并不能得到面包屑漂浮关闭屏幕左侧。

I've gotten as far as adding TextViews to the Toolbar but can't fully replicate the font/size/color of the Toolbar's style and can't get the breadcrumbs to float off the screen to the left.

推荐答案

您需要创建自己的面包屑查看,并在工具栏添加。也许基于现在去precated FragmentBreadCrumbs 视图。

You will need to create your own Breadcrumb View and add it in your Toolbar. Maybe based on the now deprecated FragmentBreadCrumbs view.

要获得面包屑浮动离开你可以使用负边距屏幕。

To get the breadcrumbs to float off the screen you can use negative margin.

这篇关于Android的材料设计重复工具栏例如面包屑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆