Stay organized with collections Save and categorize content based on your preferences.
A class to configure the elements of an AdvancedMarker
icon. Use this class to create a configuration for an icon, then use it to create and set an icon.
For example:
PinConfig pinConfig = PinConfig.builder()
.setBackgroundColor(Color.RED)
.setBorderColor(Color.GREEN)
.setGlyph(Glyph("A"))
.build()
AdvancedMarkerOptions advancedMarkerOptions =
new AdvancedMarkerOptions()
.icon(BitmapDescriptorFactory.fromPinConfig(pinConfig))
.position(new LatLng(48, -122))
.title("A marker with customized background, border, and glyph.");
map.addMarker(advancedMarkerOptions);
Nested Class Summary Constant Summary Inherited Constant Summary From interface android.os.Parcelable int CONTENTS_FILE_DESCRIPTOR int PARCELABLE_WRITE_RETURN_VALUE Public Method Summary Inherited Method Summary From class java.lang.Object Object
clone()
boolean voidfinalize()
final Class<?>getClass()
inthashCode()
final voidnotify()
final voidnotifyAll()
StringtoString()
final voidwait(long arg0, int arg1)
final voidwait(long arg0)
final voidwait()
From interface android.os.Parcelable abstract intdescribeContents()
abstract void writeToParcel(
Parcelarg0, int arg1)
Constants public static final int BITMAP_LENGTH_DP public static final int BITMAP_WIDTH_DP public static final int DEFAULT_PIN_BACKGROUND_COLOR public static final int DEFAULT_PIN_BORDER_COLOR public static final int DEFAULT_PIN_GLYPH_COLOR Public Methods public int getBackgroundColor ()Gets the background color for this PinConfig
object.
Gets the border color for this PinConfig
object.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`PinConfig` lets you customize the look of markers (background color, border color, and central glyph) on a map."],["Use the `PinConfig.Builder` to create a `PinConfig` instance and then apply it to an `AdvancedMarkerOptions` object."],["You can set the background color, border color, and glyph of the marker using the builder methods."],["`PinConfig` provides default values for background color, border color, and glyph color."],["The `getBackgroundColor`, `getBorderColor`, and `getGlyph` methods retrieve the configuration settings of a `PinConfig` object."]]],["`PinConfig` configures `AdvancedMarker` icons, allowing customization of background, border colors, and glyphs. Use `PinConfig.builder()` to create configurations, setting `backgroundColor`, `borderColor`, and `glyph` via a `Glyph` object. `getBackgroundColor`, `getBorderColor`, and `getGlyph` methods retrieve these settings. `writeToParcel` handles object serialization, and it implements the `Parcelable` interface. Several constants define default colors and dimensions. A nested `Builder` class facilitates the creation of `PinConfig` instances.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4