SlidingMenu shows blsck when used with Map api v2 - android

I have developed an application. In it, I have used a fragment for showing Map. The layout only has a top title bar and a fragment. In the sliding menu layout I have title bar and some buttons. On click of a button in main layout I show the menu.
The problem is that the menu is not showing up. Instead of menu there is only black color, But I am getting the title bar of menu. So i think the problem is the due to the map because the height of the black zone is same as that of the map
I am using this for showing sliding menu.
Please help me out.
Thanks

This is a known issue.
http://code.google.com/p/gmaps-api-issues/issues/detail?id=4659
http://code.google.com/p/gmaps-api-issues/issues/detail?id=4639
There are workarounds in comments. Maybe something will work out for you.

Related

Android actionbar popup menu

I am trying to accomplish a popup menu Popup Menu
for my android app, with a custom app bar/ toolbar placed at the bottom.
I have already tried with the options menu and custom alert dialog but seems there must be a simpler way, am I missing something?
What is the best-suited way to achieve this menu design?
Do I need to use custom navigation drawer if not then please help.
Edit : As #Blackbelt suggested Bottom Sheet Dialog, which looks fine but it is covering my bottom app bar and I am not able to set any Margin Bottom for it. Please help.
Thanks

Moving a view left of the screen

My android app UI have two parts- a menu bar (blue color) and content area (gray color).
Here red is the device screen.
The menu bar should open from left to right whene the hamburger menu is clicked.
I tried with ViewSwitcher but that shows only one view at a time.
What is the right method to implement it?
UPDATE: I am looking for the solution for API level 10 onwards.
In the newest version of the ADT you can select Navigation Drawer as navigation type when you create a new Activity. This automatically implements this type of navigation for you.
Alternatively, check out this tutorial: http://developer.android.com/training/implementing-navigation/nav-drawer.html
If you are happy with the navigation bar overlaying the content, then use the navigation drawer as suggested.
Alternatively check out:
https://play.google.com/store/apps/details?id=com.desarrollodroide.repos
There are many open source libraries that you can pick and test, and then decide which one to grab the code for.

google map overlays custom action bar menu

When I open the map activity this screen is shown:
http://tinypic.com/r/29frcn/5
After clicking on the action bar, this is the menu that should show:
http://tinypic.com/r/tziic/5
But instead of that, just the first option of the menu is shown. I can not attach screenshot because it gives the second image too (I know it's so weird).
So, the problem is that the menu is not displayed, but the options are there. In front of the screen there is the action bar, the first option, and the rest is the map. But if I clicked in the middle of the map, it detects it over the option and it goes to the correct page.
What is the problem of not showing the options but working "properly"?
Try keeping the width of the menu to be fixed instead of wrap content and if that works then probably u are using some scroll view or inherited class of its, so possibly customise it or else keeping width to be fixed should work.

Can we implement a list on ActionBar using Sherlock Library in Android?

I am using Action Bar in my application to implement Tab Fragments. I am successful in it. But getting a small problem. I am in a need of a drop-down list at the Right Corner of the action bar and a search button. Please see the image:
You can see the red marked buttons that i need to show in Action bar and below the actionbar we have tab fragments. I am successful in generating the Fragments but getting problem in showing these buttons on Actionbar. Please help me
The overflow button is automatically generated but if you have a phone with hardware button it wont show up. You shouldn't try to force it to show up as it goes against ussual behaviour for people with phones that have a hardware button.

Menu list goes out of screen when anyDensity="false"

I'm looking for a solution of the next problem.
When I set in my Manifest file android:anyDensity="false" in tag - Menu list that drops down when I click on Menu in Action Bar goes out of the screen and within screen there is only a half of menu item is shown. F.i. if i have "Settings" menu item there only "Sett" will be shown.
This is the screen:
Can anybody help me?
My andriod 4.0.4
the Only answer that i found so far is to change the location of your view in the layout so it can find space to show :(

Categories

Resources