Put image into Mapview Marker Callout - android

I'm creating an App with a Mapview and custom Mapmarkers, which works fine. What I would like to do is to add an image into the callout when the user taps one of the markers.
![enter image description here][1]
I made the same thing for iOS, where it has been pretty straightforward:
The mapview-balloons library has support for this, but it's only for Google Maps V1.
I would need to show a different image for each callout, which will be hosted on a web server, so I will also have to download that image asynchronously somehow before showing it. Is there any good solution for that?
Thanks in advance.

you can create a custom InfoWindowAdapter, see the API guide for details

Related

I want to make UI that I can move text around in Android

I want to make an app that generates card news in android.
Additionally, I want to make UIs that I can move texts around on a photo,
so that I can set the text wherever I want on the photo.
How can I achieve that?
Is there any library that I can use?
or what should I search?
I am currently working on Canvas now.
Thanks!
I think I found my solution.
I searched with the keyword 'sticker' and I found this site.
https://blog.uptech.team/how-to-create-snapchat-like-stickers-for-android-50512957c351
this is the github source
enter link description here

Adding a HTML Content in a infoWindow

Hi Guys I am using Google Maps Android API v2. I loaded the Map and placed few Marker. I wanted to display a HTML URL in the "infoWindow" but Google seems to suggest its not possible https://developers.google.com/maps/documentation/android/infowindows#custom_info_windows. can it be done using "OnInfoWindowClickListener"? So that i open a dialogue box using this listener which contains a HTML URL?
I wanted to display a HTML URL in the "infoWindow" but Google seems to suggest its not possible
You can display pretty much whatever you want in an info window (though I have not tried anything that uses a SurfaceView). You cannot respond to clicks on anything other than then entire info window.
can it be done using "OnInfoWindowClickListener"? So that i open a dialogue box using this listener which contains a HTML URL?
You are welcome to do whatever you wish when the user clicks on an info window.

How to implement google place pin in camera

I am using augmented reality in my application. So i have to implement an application, after running my application, device camera will open and when i will move this camera i will get Google map places like hotel,dominoes, on that place any pin will show, after clicked on that pin details of hotel, dominoes will be display. If any one know about please tell me or if any one have code related give me.
Firstly i have did how to get the Google place on map right now i have to open camera in my application and i want to show pin of places in my camera
Try out this demo code. Click here!.. It will help you.
You can get source code from this link. I have implemented the same using this code. It works.
I have edited link.. from this link, you can download the zip file.

how can i create a very simple animated image / progress bar on android device?

i am doing some processing in the background in my app and i am in need to show a small indicator what the app is retrieving data from the server. in a perfect world i would use an animated gif but since google decided not to support it i need a solution. i don't want the build-in dialog box that prevents the user from using an app. i need to be able place it anywhere on my layout and show/hide it when i need to. my app runs on 2.2+
any help is appreciated :)
Use ProgressBar.

Show dialogue in map overlays

In my application I am using a map overlay. When I click on an overlay image it should display an Android dialog. From that dialog the user can choose from different options. Please help me.
Thank you
Aswan
There's a developer guide section on creating dialogs that you can follow.
There's also sample code available in the API Demos sample project bundled with the SDK. Look for AlertDialogSamples.java.

Categories

Resources