Android的 - 如何实现NavigationDrawer是部分可见在任何时候? [英] Android - How to implement a NavigationDrawer that is partially visible at all times?

查看:142
本文介绍了Android的 - 如何实现NavigationDrawer是部分可见在任何时候?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想有一个NavigationDrawer在我的Andr​​oid项目,显示了ListView的部分在任何时候,而项目也可点击的,但是当用户拖动抽屉出现全面的ListView。

I would like to have a NavigationDrawer in my Android project that shows the ListView partially at all times, and the items are also clickable, but when the user drags the drawer full ListView appears.

下面的图片是我想要实现的:

Below image is what I'm trying to achieve:

第一种是普通视图在这里你可以看到小图标。第二个是,当用户滑动抽屉式导航,以便它打开。第三个是在用户点击A和C的普通视图回来的时候,这样的图标改变它们的颜色。

First one is the "Normal view" where you can see the small icons. Second one is when the user slides the navigation drawer so that it opens. Third one is when back in the normal view the user clicks A and C, so that the icons change their colour.

任何建议如何做到这一点?

Any recommendations how to do this?

谢谢回答:)

推荐答案

我碰到这个开放源码库,的https: //github.com/StevenRudenko/ActionsContentView 。我没有亲自使用它,不能说这将适合您的具体用例有一个抽屉的权利,但它确实具有左边的抽屉里。即使是这样,你可以从那里开始,应该能够建立在它适合你的使用情况。

I came across this open source library, https://github.com/StevenRudenko/ActionsContentView. I haven't personally used it so can't say it will fit in your exact use case of having a drawer at right but it does has the drawer on the left. Even then you could start from there and should be able to build upon it to fit your use case.

这篇关于Android的 - 如何实现NavigationDrawer是部分可见在任何时候?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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