Android的材料设计重复工具栏例如面包屑面包屑、工具栏、材料、Android

2023-09-07 16:07:37 作者:后来她勇敢的可怕

我试图复制面包屑例如:

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.

 
精彩推荐
图片推荐