Osmdroid always show marker description - android

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.

Related

A replacement for InfoWindow for google maps in android

While developping a map app I was trying to show different InfoWindows for many markers that display information and buttons ,I discovered that InfoWindows have been converted to images or Bitmap so the buttons actually won't be clickable , I tried to find replacement but I only found images but no names, I want to develop something similar but I don't know if it's a custom dialog box or something else ,please tell me what is it ?? Because I need to show them using onMarkerClick method.
My question is very simple, how are these two views are called :
enter image description here enter image description here

How to get highlighted text (String) in MuPdf?

I am using MuPdf to display pdf file and its successfully implemented but now i want to get selected (highlighted) text?
Thanks in Advance.
Seems to me you have 2 problems, the first is to extract the text, which MuPDF can already do. There is example code for this I believe. Then you need to compare the co-ordinates of the highlighted area with the position of the text, and decide which text is within the highlighted area.
So the first part you have example code for, the second part is up to you, as its (presumably) your application that draws the highlight. THe last part is then your job, figure out which text is within the area.

xml for dropdown text

I have used this forum when I didn't know how to do something, but now I have decided to begin participating in it.
I would like to know how could I do a dropdown text (maybe it has a specific name and that's why I don't find any results on the internet). I mean, I have some tags in the screen (About, Company, Contact, ...). Each of these tags has a down arrow on the right side, and when I click it, it has to display (and hide if it's clicked again).
Here are the links with the images of what I want to do.
http://i45.tinypic.com/4fzoso.png
http://i47.tinypic.com/2u5886q.png
Thank you in advance!
You should use an ExpandableListView component.
There is a tutorial for it here.
Finally I did it with ImageViews and TextViews using the property android:visibility. Now that it's a static version is working properly. I hope that it continues working well when taking the information from the DB

Pop-Up a menu on Google Map with two buttons

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 !

How can implement search bar in android?

I am working in android. i am trying to display name of university using listView.
my list view is looking like this.
Now i want to add a search bar on the top of this list view. if i press A in search bar then this list view should display all the name of university start with A, if i press some other character then according university name must be displayed.
Please tell me how can implement this. Is any way to make search bar in android. I have seen in iPhone, it works very efficiently in iPhone. Please help me how can make this search bar ?
Thank you in advance...
This may be the long way. but this is just an idea..
I think you have to create a layout xml file with one EditText and ListView. Inside activity you have to listen for textChange in EditText and then probably you have to filter your ListAdapterbased on the text entered by the user and bind it with ListView.
See the complete example here : http://www.androidpeople.com/android-listview-searchbox-sort-items
You can use setTextFilterEnabled(true) on your list view.
I think this may help you to get an idea. http://developer.android.com/resources/tutorials/views/hello-autocomplete.html

Categories

Resources