Notification drawer in google plus app

我是研究僧i 提交于 2019-12-11 02:48:40

问题


I want to implement Right side notification drawer in my android app like the google plus app. I tried doing it with navigation drawer but the action bar drawer toggle takes drawer layout as input instead of a particular view and thus reacts to both left and right drawer unlike g+ app.

Sliding drawer could be another option but that has been deprecated in API level 17. What can i use to implement that functionality in my app?

here is an image of what I want: http://i.stack.imgur.com/qkH30.png


回答1:


Use this library: http://www.androidviews.net/2013/04/sliding-layer/ I's quite simple to implement and saves you from doing this yourself.

Github page: https://github.com/6wunderkinder/android-sliding-layer-lib




回答2:


I would recommend reading the official developer guide first.

Also THIS

TL;DR:

I have one easy idea:

In manifest declare android screen orientation as landscape and design like landscape for portrait mode so that your app looks portrait in landscape mode.



来源:https://stackoverflow.com/questions/19083363/notification-drawer-in-google-plus-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!