I have this code that shows info on a GoogleMap in Android, and I want to show a snippet with multiple lines. I tried using "\n" but that doesn't work.
An example of how I want the snippet text formatted:
United University
Faculty of Science
Code: 2011A-5AT
Here is my current code, please help !
map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))
.getMap();
Marker hamburg = map.addMarker(new MarkerOptions().position(HAMBURG).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED))
.snippet("United University")
.title("Student Peter"));
map.moveCamera(CameraUpdateFactory.newLatLngZoom(HAMBURG, 15));
map.animateCamera(CameraUpdateFactory.zoomTo(18), 2000, null);
University")` – myanimal Jan 31 '15 at 17:30
University")) ... it shows this error: The method snippet(String) in the type MarkerOptions is not applicable for the arguments (Spanned) – Van Joseph Jan 31 '15 at 17:37