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
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 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
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 put settings in left side of screen.
There will be switcher, listviews and textviews.
In result I need like this example:
Is it possible and how I can start with?
You can use Sliding Menu Library to give such effect...
You can get the code from here.
You can also refer this link.
It's possible, and you can implement it using the Navigation Drawer which comes with android support library.
You must check out the Ribbon Menu
1) What's the Purpose
Ease of Access: Allow easy access to a menu that slides in and out
Ease of Implementation: Update the same screen using minimal amount of code
Independency: Does not require support libraries such as ActionBarSherlock
Customization: Easy to change colors and menus
2)What's New
Changed the sliding animation to match Facebook and Google+ apps
Added standard ActionBar (you can chose to use ActionBarSherlock)
Used menuitem to open the Menu
Added ability to update ListView on main Activity
Added 2 ListViews to the Menu, similiar to Facebook and Google+ apps
Added a AutoCompleteTextView and a Button as well to show examples of implemenation
Added method to allow users to hit the 'back button' to hide the menu when it is open
Allows users to interact with background(main ListView) and the menu at the same time unlike the Facebook and Google+ apps!
OR
You can also try out with Sliding Menu
You have to add one library file slider.jar into your project and follow this example for the same :
http://www.oodlestechnologies.com/blogs/Facebook-Style-Slide-Menu-In-Android
I've implemented ActionBar Sherlock in my project, but now i would prefer to replace it with a simple custom layout bar and remove ABS completely from my project. I've googled it and couldn't find anything similar to this. I remember when i implemented ABS that i have deleted the default #libs. How do i completely remove it and implement back the previous stuff without messing up? Thanks
Firstly, let your MainActivity extends Activity instead of SherlockActivity..and then right click on your project goto properties->Andrioid..scroll down and remove ABS library and apply..In manifest if u have applied any theme then change it to #style/AppTheme..and that should be it..
I'm having the same issue. In addition to removing the ABS Library and extending MainActivity from Activity instead of SherlockActivity... you have to make sure all of your activities are switched. You also have to make change fragments as well. Any imports you have need to be changed as well (ActionBar, Menu, MenuItem, etc). I'd suggest in a separate branch deleting ABS and see where the errors are and go from there.