Android how to make ListView swipe menu on icon handle - android

Hi I want to make my ListView when swipe left to show more menu.
I googled and found this library https://github.com/daimajia/AndroidSwipeLayout .
but I want to use only with handle icon. It means only swipe on that icon to activate and show menu.
Because I use PagerView for tabs, so when swipe on the rest area it will change tab.
Can anyone guide me how to do it?
Or any Library is fine.

I think the best way is to use RecycleView with ItemTouchHelper
Here is similar question with answer RecyclerView Swipe with a view below it

Related

Expand content inside navigation drawer on navigation item click - android

In my android app, i am having NavigationDrawer. Now, i want that when i click on any navigation-item, then
1) left drawer should remain open
2) previous listitem should be replaced by item-click content
3) item click content should be loaded within navigation view.
I searched but found few links suggesting to use ExpandableListview. Is there any facility to expand or collapse content of navigation item?
Is it according to android design patterns? if its possible then please suggest that how can i achieve it.
Thank you.

Listview is not sliding in while clicking action bar in android

I have implemented a navigation drawer menu using getsupportactionbar and list view. While clicking the action bar, the listview is not moving. In facebook and google+ right hand side component will also move. Can anybody tell me how to also move the listview? Is it possible to implement in android, and if yes can anybody me tell how to do this?
Thanks

Android Drag and Expand View

I need to implement something similar to Android's notification bar. I would like to make a view that the user can drag and expand. The part that is not visible at the bigining has more views. (The image below explain what I want to achieve).
you can use sliding drawer i know its deprecated but still works well even in android 4.4 have a look at this tutorial for sliding drawer

Android ActionBar Sherlock Swipe Gesture Recogniser

I have an application that has action bar sherlock and SlidingMenu integrated in it, the application has only 3 pages, and they're static pages, so no big deal about them. I have one activity and 3 fragments that i am changing when using the sliding menu.
What i want to achieve is something like this image
I want the user to be able to swipe with his finger on the ActionBar, and when that happens i change the fragment that is being displayed.
Note: i got the gesture recogniser from this awesome answer, but i can't seem to find a way to attach it to the ActionBar.
If i could put a View on the action bar and detect swipe on it, that would be great, but how can i do that ?!?
One last thing, how to implement this "Page Control" in android ?!?
So the answer to my question is that i simply created a custom_actionbar.xml, and then i used this to do the following:
View custom = LayoutInflater.from(this).inflate(R.layout.actionbar_custom, null);
getActionBar().setCustomView(custom);
// and you can use the things in the custom action bar like following !!
Button btnLeft = (Button) custom.findViewById(R.id.btnMenu);
Hope it helps someone :)

sliding menu move content to right before toggling

I'm using the slide menu library and setting the menu offset from a xml.
setBehindOffsetRes(R.dimen.slidingmenu_offset);
when I click the menu item I use
menu.toggle(true);
which moves the content to left with menu behind it. My scenario is when I click the menu item, the content has to move all the way to right and then should bring the content in like the normal way so that the user dont get to see the UI change. I used
setBehindOffsetRes(R.dimen.slidingmenu_fullscreen);
showMenu(true);
where R.dimen.slidingmenu_fullscreen = 0dp. The menu goes to full screen behind the content, but the content doesn't moves to the right. Thanks in advance!
Edit 1: This is similar to Xoom application... Sample "Slide Sample"
I would recommend using ActionBarSherlock. Use this tutorial for sliding menu, It is much easier to use, and you will find much more help with it. It is also more compatible with different screen sizes, and more Android versions.
Finally I figured it myself.
menu.mViewAbove.scrollTo(menu.mViewAbove.getScrollX()-200,0);
moved the content to right. But now got into another problem. which I have descibed here->
https://stackoverflow.com/questions/19714871/sliding-menu-move-content-to-right

Categories

Resources