如何使用工具栏创建下拉视图(如Google日历)? [英] How to create a drop down view like Google Calendar using Toolbar?

查看:97
本文介绍了如何使用工具栏创建下拉视图(如Google日历)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建类似于Google日历下拉月份小部件的工具.

I am trying to create something similar to Google Calendar drop down month widget.

任何帮助将不胜感激.

Any help would be really appreciated.

到目前为止,我有一个想法,我需要将工具栏与可扩展的动画配合使用,但不确定该方向是否正确.

So far I have an idea that I need to use Toolbar with expandable animation but not sure that's the right direction to move into.

推荐答案

我还试图创建类似于Google日历应用程序的工具.我提供了此实现:

I was also trying to create something similar to the Google Calendar app. I've come with this implementation:

我将 CompactCalendarView 库用于月份小部件.然后 CollapsingToolbarLayout 进行下拉.

I use the CompactCalendarView library for the month widget. And CollapsingToolbarLayout for the drop down.

您可以在GitHub上查看此实现的源代码: https://github.com/GerritHoekstra/CompactCalendarViewToolbar

You can view the source of this implementation at GitHub: https://github.com/GerritHoekstra/CompactCalendarViewToolbar

主布局可以找到这里.

希望这对您有进一步的帮助.

I hope this helps you further.

这篇关于如何使用工具栏创建下拉视图(如Google日历)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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