Add a small tab on left drawer - android

I am new to android dev. I have a problem of adding a small tab on my left drawer.
Because it may be hard for user to detect that I have a left drawer so I want to add a tab to let people notice.
Here's the screenshot of my app.enter image description here
I hope it can have a small tab like this
Can you give me some hint to start?

You can just put a view on the left of your layout using relative layout and on click of that view you can just open the drawer by calling:
mDrawerLayout.openDrawer(Gravity.START)
This will open the drawer in the same way it open when action bar icon is clicked.

Related

Creating a Sliding Menu with Overlaying Image

I'm trying to create an activity that has a sliding drawer at the bottom and allows the user to slide up and reveal a menu (shown as the grey area in my pictures). I'm currently having two issues:
Sliding Animation: When the user begins to drag, I want the Text and image to dynamically re-size and move as the drawer is dragged up (see pictures below). I have a working sliding drawer, but no animations.
Round Image: I want the round image (seen in the pictures below) to sit halfway on the sliding layout, but I can't seem to figure out how to do this. Any suggestions?
Here are the pictures showing what I'm trying to achieve:
Sliding drawer fully closed: link
Sliding drawer open a litte: link
Sliding drawer open more: link
Sliding drawer open all the way: link
(sorry, I don't have the rep to directly post the images)
You are looking for Design Library's Collapsing Toolbar class which you should check instead of reinventing the wheel. There's open source sample app you may want to check:
https://github.com/chrisbanes/cheesesquare

Android Sliding Panel with Showing icons only when it is collapsed

I want to implement sliding Menu like below images ,I am using SlidingPaneLayout to create Left Sliding Menu but How i can make it to behave like below images.
Now when some one close it by Either top left icons click or by drag to left it should be close like below shown image.
This image are just for giving idea of what i am try to do in my sliding Menu .
Let me known that some known how to achieve such in android.

Using ActionBarDrawerToggle makes actionbar not show home icon in right postition

I need to create a slide menu for my app. So I search and follow the tutorials at this link. And to make the main content slide from left to right along with the slide menu, I following this link. But I got the result like below:
I dont know why the menu icon is not on the left side of action bar. Even when I slide the menu to the right or not, It just stay there, just pushes the Application icon and the title to the right, even out of the action bar. I tried to resize the menu icon to very small but It does not work. Please help me. Thank in advance.

Custom animate navigation drawer

I have implemented Google's navigation drawer and I would like to add a custom animation when I click a menu item.
Ideally the menu would slide back as if closing, leaving a small sliver of the menu open. A dialog would open with an animation, originating from the space beside the selected menu item.
Something like this..
I tried to animate the left_drawer element on the x axis using ObjectAnimator, but this displaces the whole screen.
Can anyone help?
If you want it so the drawer is only peaking, try using drawerLayout.closeDrawers(true).
According to the source though, this closes all drawers (if you have more then one).
DrawLayout source

Sliding effect for opening menu in android

I want to open a sliding menu when we click on top button. Please check the below image. when i click on red marked image/button then how can i open a sliding menu/list items as you can see in 2nd image.
When this menus gets open then main window get slide toward right side of the screen where small part of the main screen will be visible.
I am not sure if this menu is a list of view!! Please help me out.
The best Library doing that is SlindingMenu from jfeinstein10 on Github.
Design your layout with two panels. Left panel with visibility GONE. And then in onClick method of your button at top-right, make visibility of left panel VISIBLE. You can create a Animation to open left panel smothly.

Categories

Resources