Pop-Up a menu on Google Map with two buttons - android

i want to pop up a menu on touching the map, the menu should have two buttons 1. SetAs-Source 2. SetAsDestination. ! on clicking the source the point should be stored in a GeoPoint Variable and the button should then we disabled after setting as source, also i would like to add a image at that point.
I am able to add a Item in The Itemizedoverlay and show a pushpin over there, but before doing this all i want to popup a menu pointing over the touched(like traditionaly google pop-up ) and on setting as source, it should add the item .
The popup should be like as you see in the image but, instead of plain text i want to add buttons
Thanks In Advance !

Are you looking for like this ??
Then use Android MapView Balloons. Its pretty easy to use. Just find out more Here
Hope this helps !

Related

Android Edittext multiple actions

*In android Edittext, i have set drawable left and right, i can make
click actions for drawable left and right but i cant check single
click and double click for it.*
**Multiple actions:**
1.left drawable click
2.right drawable click
3.single click
4.Double click
5.Clear text
You can use GestureDetector. Check this link:
https://developer.android.com/reference/android/view/GestureDetector.OnDoubleTapListener.html
There is some other question like you and they get solution.
Thanks to Mr.Hardik4560 who gives some solution in that question.
Please follow this link to get them.
https://stackoverflow.com/a/13135554
I hope you get solution from this and solve your issue.

How to get the icon of clicked Marker in google maps android?

I have groups of marker of different icons in my map and all are clickable.
I want to know the icon of the clicked marker.
I check the docs and couldn't find any method like getMarkerIcon(). Is there any other way?
Thanks
As of today , there is no function which returns the icon of clicked marker.
I hope it will come in the next releas.

Selection mode like Google Android Mail

I have an android app which presents list of items with icons.
icon1 - ItemName1
icon2 - ItemName2
icon3 - ItemName3
Like in latest gmail app when we long press on an item the icon displays tick mark indicating item is selected.
There could be one way that I have two icons (one normal and other with tick mark) and i can replace the icon on long press.
Is this correct approach or could there be a better option or some library for it from google ?
Regards
The solution was very simple. Found by navigating through stackoverflow.
For the icon put an imageview or imageviewbutton. Put a onClicklistener on it.
On click change the source of the imageview or imageviebutton to a image with selection indicator. You can also put an animation to make the image transition appear more smooth.
Regards, Ashwani Kr Sharma

Android map view (dropping a pin and moving it, add a custom label to it)

I wan't to create a map view like in ACL2011 app.
here I list it's details and my progress.
It has several location tags and those containing deferent icons - I can't do it(I can set one tag for all the places but can't put different tags.
it has drop a pin(drop a pin to a specific location - I can do this.
the dropped pin can move( long press on it allow user to move the pin) - cant do it
one user tap on the dropped pin it shows a label with two buttons - can't do this
Please help me...
I tried a lot but I still can't do it. found one with moving pin but I did't able to apply other functions to that.
thanks in advance.
Try this project

Osmdroid always show marker description

I'm working with Osmdroid, particularly with this class: http://code.google.com/p/osmdroid/source/browse/trunk/osmdroid-android/src/org/osmdroid/views/overlay/ItemizedOverlayWithFocus.java
It shows a ballon with text description when an item is tapped ('focused') but I want wo show the description of all items all the time.
Anybody had the dame issue yet of can perhaps give me a hint on what to change in the ItemizedOverlayWithFocus.java- class, probably the draw()- method to get that done?
You can do that without changing anything in the library source code:
Use multiple ItemizedOverlayWithFocus, and in each one, put only one overlay item.

Categories

Resources