Slide out ListView from side like in new GMail App - android

In the new GMail app you can slide out the list of folders from the left side.
I'd like to learn how this is done, and know if this is a feature of the Android SDK or did Google implement a custom effect to make this happen.
I've read about SliderDrawer and Fragments, but nothing seems similar to what they do.

This is the new DrawerLayout UI pattern. They have instructions on how to set it up in your app.

Use NavigationDrawer
and done with framelayout

Related

How do I create an android navigation bar that pushes aside the current view to right?

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

Facebook-style sliding widget

I am new at Android Development, working in a personal application.
I want to implement a gallery-style widget in my app, something like the following facebook app screenshot (not enough reputation to upload images here) i. e. a swipeable and clickeable bunch of elements.
http://imgur.com/YeesrTw
I want every element of this gallery-like widget to be a composite layout (distinct instance of a fragment) with textView and imageView (I think I can figure how to do that) instead of a simple image.
I have a navigation drawer im my application and I'm using a "single activity-multiple fragment architecture", so I want to add this gallery-like widget in one of those fragments.
Please, If you could guide me or give me some suggestion about the Android layout elements I can use to accomplish that, I would be very happy :D
I'm aiming from API Level 15 to API Level 19, only.
Thanks in advance!
So, after hours of reading several android tutorials, I realize the Widget I was looking for is the ViewPager
:D

Sliding Layout in Android

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

Sliding Drawer left to right and i want use all activities

I want to use sliding drawer from left to right ?
So can you tell me anybody how it is possible? and also use this drawer to all activity in my project.
Use the concept of viewpager.You can find doc and example below...
doc
Example
Check that library. API 6+ (even less, not quite sure)
https://github.com/6wunderkinder/android-sliding-layer-lib
You can attach a layer to any part of the screen with the addition that you can swipe the layout directly in and out, unlike the SlidingDrawer in which you just can drag from a small piece of UI (drawer).
You could also use the new NavigationDrawer pattern from Google.
http://developer.android.com/design/patterns/navigation-drawer.html

Swipe Views in Android

I have written an Android App, which uses ViewPager to swipe between different Views of my app. This works very well, but the animation isn't like I want it to be.
The current view swipes out to the right, and the new enters from left. But I want the current view to leave like a layer to the right, so that the user can see the new view, which was "under" the current view. I want the "old" view to stay at the right side, so it can return onclick.
The current Evernote App uses this behaviour. I attached a screenshot. Thanks ;-)!
http://i.stack.imgur.com/2RlT4.jpg
You can refer Sliding-Sidebar. This has Facebook like slideout effect.
Quick reference of the above library :
You can download the Android UI Patterns app. from the Google Play and see the effects you require. Its inside ActionBar & Dashboard --> gui-sliding-sidebar.
you should use the fly in app menu here below demo project will help you
https://github.com/korovyansk/android-fb-like-slideout-navigation
I would suggest you use SlidingMenu It is a very good and solid library with an active developer. It works well with ActionbarSherlock too which is great for backwards compatibility.
SlidingMenu
An Android library that allows developers to easily create slide-in menus like in the Spotify and Facebook applications.

Categories

Resources