O
O
ostrovskiy_andrey2015-05-13 13:12:39
Android
ostrovskiy_andrey, 2015-05-13 13:12:39

How to make a line break in marker snippet?

This is how I add the marker:

mMap.addMarker(new MarkerOptions()
                        .icon(BitmapDescriptorFactory.fromBitmap(b))
                        .position(new LatLng(alat, alon))
                        .title(tit)
                        .snippet(snip)
        );

and the snippet is taken from the database in the form "string1/nstring2/nstring3"
and displayed in the same way.
The number of lines may vary.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2015-05-13
@IceJOKER

why /n and not \n ? O_O
If \n doesn't translate, then try<br/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question