Path like menu item - Android - android

I'm making use of Siyamed's menu item in my app.. I would like to place the menu item in the bottom center of the screen.. and when I click on it, the child items should surround the center icon. Any ideas on how to start?

I recommend you tried another implementation: ArcMenu by daCapricorn.
As the author said on Google+:
If you want to put it align the screen bottom, you can set alignparentbottom="true" in xml and compute the marginBottom (it should be negative) programmatically.
PS: I personnality ended up using ArcMenu library rather than SatelliteMenu for the same issue.

Related

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

Layout over layout that can move

I am writing an Android app but cannot figure out how to have a layout over another layout that can animate up and down to show and hide its contents, but have the bottom layout's imageview, shrink to fit the new area.
An example of what I am trying to do is in this iPhone app.
http://itunes.apple.com/gb/app/alex-ze-pirate-comic/id526432227?mt=8
Screenshots 2 & 4 show the states that I mean. When the top layout goes down to leave just the toolbar, the imageview gets taller to use the extra space provided.
Hope you understand me.
Thanks,
Ashley
The ImageView in this case will stay the same. Your second View will simply be covering it for some time. You can achieve this effect using a sliding drawer.

Horizontal slider bar in android

I want to create a horizontal slider bar which slides right and left according to the corresponding button click. I have attached image below for reference.....
I want to create the thing which is encircled in blue area. I which the right arrow shows, used to slide the bar in right side with different items and information shows below according to selected item on the horizontal bar. I have searched enough on web but nothing finds as similar as above. Please suggest me for the right solution regarding the same.
Thanks in advance.
You can use the Gallery View instead of Horizontal Scroll View check the example :
If it's just slider bar, I suppose, you can use Gallery widget.

How can I implement a fixed position search bar in android 2.2?

I'm trying to write a simple wikipedia app for Android 2.2 which allows users to search and view articles.
When a user is viewing an article, I'd like there to be a fixed position search bar that remains fixed at the top of the screen, despite the vertical scroll position, as in this picture:
http://img839.imageshack.us/img839/9159/wikidroid01.png
How can I implement that search bar? Is it a view I stick in my layout? I've already read about Search Dialog boxes in this android tutorial (http://developer.android.com/guide/topics/search/search-dialog.html)... but it's my understanding that the search dialog box search bar can only show if it is focused (when onSearchRequested() is run), right?
Thanks for the help!
You can do it by taking relative layout of fixed height. In that relative layout add the elements in order that you have shown in picture like
1) Imageview with wrap_content height & width.
2) Take Editext with fixed height & width also set Hint for that EditText="Search WikiPedia".
Put this layout as first element in your main layout so that it will be always at top if vertical scroll is there it will not scroll that search bar.
You can use fragments. They allow you to have 2 (or more) views that are controlled separately. Read more here.
Fragments are new to Android 3.0 however there is a compatibility pack that allows you to use them as early as Android 1.6.

Contacts favorites search bar

I'd like to replicate the search bar in Contacts app > Favorites > Search (sans icon). Could someone give me a few tips?
A linear layout maybe with some top, left and bottom padding, width is fill_parent, and a weight of 1? With a button next to it with some right padding? How do I make the button look like that? Is there a parameter I can set to get the gradient background of the back? Or do I need to supply an image?
Screen shot
Check this tutorial and see the implemented code of that app in this git repo.

Categories

Resources