I am using android appcompat_v7 version,i had developed an actionbar activity with optionmenu(flowmenu) at the right corner of my action bar,it works fine.Now i want to place a sliding menu at the left corner of action bar,is there any possibility.
I had tried some code but nothing works fine..
Try with a navigation drawer. It is part of the Android Platform, not a third party library, so you could find a whole example here in the official documentation https://developer.android.com/training/implementing-navigation/nav-drawer.html
Try the new Android support design library. Check the official blogspot and some fresh tutorials like this are starting to emerge. If you you follow the guidelines you will probably solve any issues. If you use the new library don't forget to add the correct dependency
compile 'com.android.support:design:22.2.0'
You can use a drawerLayout to create a sliding menu.
DrawerLayout is a widget in support-v4.
Here is the documents:
http://developer.android.com/reference/android/support/v4/widget/DrawerLayout.html
Related
I need a navigation bar that doesn't slideIn above the current view (the usual overlapping stype), instead it should be as in new ebay app (as if scrolling the wallpaper in homescreen with more than one page). Is it possible to add this effect to material-design-navigation-view? How do I do it?
You can use Sliding Menu Library for your requirement. Here is the link to that library
Sliding Menu Library
And if you are using Android Studio then see this link to add it in your project
Importing in Android Studio
There is no default way to really do this. However, this thread of StackOverflow will help you: push activity on the right when open drawer
Another GitHub library that may suit your need is: Material Drawer. You can download the demo on Google Play Store (same name). A similar approach is the Persistent Header Drawer
I want to implement a layout in which the action bar is below an image. And, on sliding the screen up, the actionbar should also move up, along with the image. The action bar should then go to the topmost point of the screen and stop.
This is implemented in many apps like the grofers app.
I don't mind using an external library for the same.
Thanks.
Go Through this awesome Demo Sample Code using Android Design Support Library Coordinator Layout.
Please go through this,It shows some of the important features in the new Design library:
https://github.com/chrisbanes/cheesesquare
As per your requirement Here is sample code link.
Please check this
I have found a library same for your requirement. please find the link
You have to customize from that library according to your need.
I have implemented slidingpane layout in my first android application, but when I slide the menu the actionbar still remains static and I wanted to implement something like Google+ app does
There was a similar questions posted in Stack Overflow where people suggested to import Sliding menu library from github, but in my case I have Implemented the SlidingPane layout imported from android support library (android.support.v4).. Is there a way of achieving it? If so please share your knowledge and help. Thank you.
You have to use a custom library to do this. "Sliding menu library from github" will be a good choice for it. For example implementation of slidingpane check out Google Hangouts(pic here http://i.stack.imgur.com/OqTvr.png)
I want to implement sliding menu for my app.
I have done some research for sliding menu and i found that is useful so I downloaded the library and import it into my project but I did not find any good explanation to use this slide menu with ActionBarSherlock.
Is it possible to implement sliding menu with ActionBarSherlock and also support Android 2.2 and above?
Thank you
i dont found any good explanation to use this slide menu with SharelockAction bar
I assume that "SharelockAction bar" is ActionBarSherlock. If so:
Step #1: Visit the project home page that you included as a URL above.
Step #2: Read the "Setup with ActionBarSherlock" section.
If "SharelockAction bar" is referring to something else, please provide a link.
If you want to get ActionBarSherlock working with Jeremy Feinsteins library, you just have to extend SherlockActivity in all classes instead of Activity. Also replace all FragmentActivities with SherlockFragmentActivity and so on. Don't forget to set the Theme of the App to: Theme.Sherlock
I'm looking for something similar to what the new Facebook app has implemented for the Android/ios mobile applications. I am referring to a side navigation menu which opens with a finger movement. Something like this
Is there any library or example where I can check?
Thank you very much.
Use SideNavigationView for side menu like facebook. But you will need a library for this which you can download from here "https://github.com/johnkil/SideNavigation".
Code for using it is:
SideNavigationView sideNavigationView;
sideNavigationView = (SideNavigationView)findViewById(R.id.side_navigation_view);
sideNavigationView.setMenuItems(R.menu.sliding);
sideNavigationView.toggleMenu();
Now, make menu you want to show in Slide menu.
All the best....
Like Wubao Li said , this now is supported by android in the DrawerLayout
Here is a tutorial of how to use it
http://developer.android.com/training/implementing-navigation/nav-drawer.html
And here a doc about how it should work
http://developer.android.com/design/patterns/navigation-drawer.html
With android support package revision 13( may 2013), there is DrawerLayout for creating a Navigation Drawer that can be pulled in from the edge of a window. And, navigation drawer is a design pattern now. http://developer.android.com/tools/extras/support-library.html
This is my implemetnation
https://github.com/MihaelIsaev/Swiper
Enjoy :)