A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/android/reference/com/google/android/gms/maps/model/PinConfig.Glyph below:

PinConfig.Glyph | Google Play services

PinConfig.Glyph

Stay organized with collections Save and categorize content based on your preferences.

Defines a glyph, which is the element at the center of an AdvancedMarker icon. By default, this is a circle, but can be configured to have a different color, or set to some text or bitmap.

Constant Summary Inherited Constant Summary From interface android.os.Parcelable int CONTENTS_FILE_DESCRIPTOR int PARCELABLE_WRITE_RETURN_VALUE Public Constructor Summary Glyph

(

String

text)

Creates a glyph instance with the specified text.

Glyph

(

String

text, int textColor)

Creates a glyph instance with the specified text, and color (in ARGB format).

Glyph

(int glyphColor)

Creates a glyph instance, using the default circle, but with a custom color.

Public Method Summary Inherited Method Summary From class java.lang.Object Object

clone()

boolean void

finalize()

final Class<?>

getClass()

int

hashCode()

final void

notify()

final void

notifyAll()

String

toString()

final void

wait(long arg0, int arg1)

final void

wait(long arg0)

final void

wait()

From interface android.os.Parcelable abstract int

describeContents()

abstract void writeToParcel

(

Parcel

arg0, int arg1)

Constants public static final float DEFAULT_CIRCLE_RADIUS_DP public static final float X_COORDINATE_DP public static final float Y_COORDINATE_DP Public Constructors public Glyph (String text)

Creates a glyph instance with the specified text. The default value is black (0xff000000). Use Glyph(String, int) to set text with a different color.

public Glyph (String text, int textColor)

Creates a glyph instance with the specified text, and color (in ARGB format).

public Glyph (BitmapDescriptor bitmapDescriptor)

Creates a glyph instance with a specified bitmap.

Because the default glyph circle has a radius of 5dp, it is recommended to provide a bitmap drawable that is 10x10 pixels for mdpi screens, along with alternative bitmap drawables, following a 3:4:6:8:12:16 scaling ratio between the six primary densities. This will ensure that the glyph size for a custom bitmap pin will be similar to the glyph size for a pin using the default circle glyph.

public Glyph (int glyphColor)

Creates a glyph instance, using the default circle, but with a custom color.

Public Methods public boolean equals (Object o) public int getGlyphColor () public int getTextColor () public void writeToParcel (Parcel out, int flags)

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.Glyph` defines the central element of an AdvancedMarker icon, customizable with color, text, or bitmap."],["It provides constructors to create glyphs using text, bitmaps, or a custom color for the default circle."],["Developers can access glyph properties like bitmap descriptor, color, text, and text color using provided methods."],["For custom bitmap glyphs, using a 10x10 pixel image for mdpi screens with appropriate scaling for other densities is recommended."],["`PinConfig.Glyph` implements `Parcelable` for passing in Android bundles."]]],["`PinConfig.Glyph` defines the central element of an AdvancedMarker icon, defaulting to a circle. You can create a `Glyph` instance with custom text, a specified text color, a bitmap, or a custom circle color. Key actions include retrieving the glyph's bitmap, color, text, and text color. Constants define default circle radius and coordinates. Methods exist to write to parcel, compare, and hash the glyph object. There are also method for retrieving the bitmap descriptor.\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