I would like to implement a drawer in my app, like in the hangouts app, just on the left side, but thats not the most importent, its good on the right too.
I already implemented a menu drawer, how can i make it semi closed like the picture on the link?
Or is this a new kind of drawer? Then whats its name? So i can search for some samples.
http://i.stack.imgur.com/MxdbO.png
I used support.v4 library, and the actionbarsherlock. So this project is api >=10.
Thank you for your help.
It's called SlidingPaneLayout. In this week's episode of Android Design in Action, Roman Nurik also mentioned that it is used by the Hangouts app.
Watch this part of the Google I/O Session Android Design for UI Developers to see how to implement this pattern.
Not quite sure what you mean about SlidingDrawer to the left, but I'll guess that you refer to the SlidingMenu, am I correct? In that case, I've used this library successfully:
https://github.com/jfeinstein10/SlidingMenu
This library is also compatible with the ActionbarSherlock.
Related
I want to setup a 'tabbed' application. Looking through all the tutorials including the google docs here:
http://developer.android.com/training/implementing-navigation/lateral.html
However as I start to go through the docs I get all kinds of deprecated warnings:
actionBar.setSelectedNavigationItem(position);
I would really like to start off right and use any new non deprecated methods. Most examples of tab applications are years old. What am I missing? Am I searching for the wrong thing? Can someone point me in the right direction for developing a tabbed application.
What am I missing?
Action bar tabs were deprecated in Android 5.0, last fall.
Can someone point me in the right direction for developing a tabbed application.
Use TabLayout, though this is a very new addition to the Android Support libraries.
Or, use ViewPager with your favorite tabbed indicator, of which there are many.
Or, use FragmentTabHost.
I've been really trying to soak up everything about Android development, including material design stuff.
My question though is about the floating action button in particular. If it's an integral part of the material design guidelines, how do they expect rookie developers (like myself) to use it easily? I've found lots of github projects with floating action buttons, but I'd really love an official one.
I've done a decent amount of development, and even done an Android app with some of my classmates. We put a floating action button in our app, but we just used one we found on github. In the real world, do people just find one they like and add it to all their apps as a gradle dependency?
Sorry for being ignorant, I have little experience in the professional world. But it just seems to me that if Google wants developers to adopt this, they would make it really really easy to add it to an app.
Thanks!
-Justin
Have a look at the new version of v7 appcompat library .
http://developer.android.com/tools/support-library/index.html
Google is trying hard to Materialise the pre-Lollipop devices(added Palette, added AppCompatDialog and a bunche of compat views), so your floating button may just be around the corner :)
I would like to implement a drop down menu from the ToolBar like in the Ios version of Google+:
But as as a beginner in android development, I don't know which component should I use, anybody can help me with that ?
Those SO question you've mentioned in the comments are true: You should not implement an exact copy of that iOS navigation in Android. If you choose to develop an app for Android then you better make it look like an Android app (because that is what your users will expect).
However, that does not imply Android lacks of similar navigation pattern. What you are looking for is ActionBar dropdown navigation and can be found on this official docs. That link should be enough to get you started. :)
I've searched a lot on Google for following design but all I end up is Navigation drawer, which is little bit different then the below one. I've taken this screenshot from FIFA Official iPhone App
How to design sliding menu like below one in Android
It might be a bit late for user7055, but I've found a project called AndroidResideMenu on Github which seems to achieve what is asked here.
Hope this help other people : )
You could use the NavigationDrawer lib from google ;) there are several tutorials for that
I want to make a moving list appear from the left of the screen of the activity in the android app.
Something like the facebook app shown below :
,,
how can I make something like that in an android app.
Thanks.
This is a very popular UI pattern called a sliding menu / slider. You can search for open source libraries / projects which implement this for you.
Here is the first one I found on google.
This one is useful if you want to support old (pre holo) android devices too. It's an addon to the excellent holoeverywhere library.
And last but not least, take a look at this official pattern by google which also implements the same behavior. The code for creating it is available here.
The concept behind this is that you are taking a screen grab of the current activity and then loading in the menu. Your not actually sliding between activities, your moving the screen shot. Thats a very basic explanation of whats happening.
If you search for slide navigation on github I'm sure you'll find something.