问题
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