Android Menu Layout Front page - java

I want to make a menu sort of similar to Yelps front page.
The left image in particular. I feel like I've seen this on multiple apps, and I also remember thinking that this was actually something built into the default android layouts, but I can't seem to find anything on it anywhere.
How would I go about making this layout? Is there something already built for you, or do I have to make using image buttons and a relative layout?

Google+ also uses something like this on their first page; a lot of apps do now. It's called a dashboard layout. You can see an overview of that here and an explanation of how to create it here.

Using button images and a relative layout is an easy way to do this. For help on that look at this tut: http://developer.android.com/resources/tutorials/views/hello-relativelayout.html

Related

Problems with SlidingMenu library

I want to make a shadow in my entire activity, like the commonly used in tutorials of how to use some app, but I don't know any way to do this.
If you want more details about why I want to do this, I'll explain:
I found an old app at my works GitLab, but it was made before the oficial implementation of NavigationDrawer. So, it uses a library called "SlidingMenu" (https://github.com/jfeinstein10/SlidingMenu), but this library is very limited and I don't have any idea of how to make the activity look "disabled" while the sliding menu is open.
By the way, if someone knows how to set a maxWidth to the sliding menu please feel free to tell me because i don't.

Drag views in android

I want to create a Draggable activity/fragment like the default settings screen in abdroid which opens when I pull down from HOme screen. By draggable i mean I want to pull the screen down from a point to close it.
I am trying to figure out the term used for this. I went through Drag views but that is used for moving view around the screen. Has someone solved this? Please help!
Android does not provide any API to support development of the settings-like screen. If you have to implement it, you will have to do that by yourself.
In order to fake the settings-like pull down screen within your application, you will need to create similar UI layout and use it in combination with the swipe down gesture (which works only when you swipe from the top within your application) and Animation.
Good place to start is to look on
DrawerLayout
It for drag layout into the screen and out.
A pretty good library that handle the stuff for you is:
AndroidSlidingUpPanel

How do you put tabs under another layout similar to the Google+ app? (Example Pic Incuded)

I want to implement something simlar to this Google+ layout. The page scrolls until the tabs at the bottom hit the top. Then the list view in the tabs scroll. Does anyone have an idea to do that? (The tabs should still be visible but the content inside scrolls.)
Please don't hesitate to ask for clarification.
Any help is appreciated. Thanks.
If you were to use uiautomatorviewer to examine that app, I suspect that you will find that the tabs are a tabbed indicator for a ViewPager. PagerTabStrip is one that ships with the Android Support package, the ViewPagerIndicator library has another, and there are still more floating around out there. Such a tab strip can be placed pretty much anywhere.

How to create a GMail.app like menu

I'm new into Android programming, but making steady progress with it. My app has several activities, and I would like to add an GMail.app like menu to it.
It would be very stunning if someone could give me a hint what I should search the API docs for to create a menu like this. Thanks a lot.
If you're targeting API 11 and higher you can just use the ActionBar. If you want to provide the same UI for devices with older versions of Android as well, you can give ActionBarSherlock a try. Here's a tutorial on how to use it.
You can start off by creating a custom Menu. Read up on it here. To have your Menu look a certain way, you'll want to mess with Themes and Styles. You can find a basic tutorial on that here. Your question is somewhat broad so I can't provide specific code examples, but the links should get you on your way.
Specifically what you're looking for in this case is the ActionBar Dropdown Navigation Mode (see the ActionBar docs). Of course, this is only for API level 11 and higher since it involves the ActionBar.

"Home Screen" like effect while switching between views on Android

I'm creating an application on android similar to that of a book. I would simply like to have the scrolling effect between views (not activities) similar to that of the home screen. Currently I am using a ViewFlipper and don't have the animation I would like, since the shift is sudden as opposed to following your finger.
I am aware that there are several opensource projects and classes being developed to achieve such a thing more easily for the individual programmer, but wondered if there was a way I may have overlooked to implement a homescreen-esque effect. An alternative which I have thought of using would be a TabView, with no label tabs being displayed above the content of the page, yet have not heavily looked into this option yet.
If anyone has encountered the same hurdle and has any ideas of how to overcome it, I will buy you a pizza! (Not really... I don't know your address) But I'd be very appreciative! :)
Thanks
I think you're looking for the ViewPager. It's part of the compatibility library.

Categories

Resources