Copy the google plus floating toolbar menu - android

I'm trying to emulate a "toolbar" type floating menu used by the android google plus app. The menu appears when you scroll up the page and hides nicely when you scroll down.
I'm guessing this is a linear layout with some sort of animation. Is that correct? Any ideas on how to reproduce?

You should have a look at Roman Nurik's scroll tricks example here. It shows how to have a quick return view like the one you mention.

One way to achieve this effect is to call animate().translationY(value) on the object you want to slide down/up.

Related

How do I implement a slide-out menu pane similar to Google Maps and Twitter?

I am looking to implement something similar to the slide-out pane shown in Google Maps and also in Twitter(Click the settings button after performing a search).
The pane displays itself at the bottom and the user can either click on it or swipe upwards to reveal more information.
I want to implement something similar but I am not sure how to proceed. I have a simple ListView and when a user clicks an item, the slide-out pane should appear. How would I go about doing this?
I was thinking of using a context menu but according to the official docs, icons are not allowed to be placed there.
Check out AndroidSlidingUpPanel. It should be perfect for your needs. It can be also achieved using SlidingDrawer.
You can use a navigation drawer to make a slider menu.
You can see a good example here:
http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/

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

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

Android how to make menu bar that appears at the side of the screen? Like Google Plus, Facebook menu on Android devices

I am developing an app on Android and would like to use the similar menu bar like Google Plus or Facebook, when you click the button, the menu bar will slide in and will not occupy the whole screen. Any ideas on that?
Thanks.
A pretty popular library for accomplishing the 'sliding menu' effect (or 'drawer' as the design guidelines on the Android developer website prefer to call it) is Jeremy Feinstein's SlidingMenu. It's also compatible with ActionBarSherlock, in case your project is using that too. Unfortunately, at this stage there is no component built into the SDK that allows you to do easily accomplish the same thing.
There are also a couple of alternative implementations for a sliding menu (do a search either here on SO or Google), but I haven't checked those out for a little while. If I recall correctly, there are especially some variations in terms of whether the ActionBar is supposed to slide along with the content or stay fixed at the top of the screen.
You can use FrameLayout in parent view and use translate animation in menu layout to show the slide in and slide out effect.

Vertical Action Bar for Android

I want to display the Action Bar Vertically in my App.
I have found few examples for the Horizontal One, but not any for the Vertical One.
Can anyone please give me any example for the Vertical Action Bar.
Thanks,
David Brown
There's nothing in the Android UI design guide about a vertical ActionBar. But you might be able to coerce a similar effect by locking the display orientation, and then applying a rotation to the View in the content area. You also might be able to get somewhere by downloading the source code for ActionBarSherlock and implementing your own version of the ActionBar. But I don't recommend either of these solutions. If you're really that intent on putting actions on the side of your screen, I suggest either a small vertical LinearLayout, or implement one of the side navigation solutions as discussed in Android Facebook style slide.

Categories

Resources