[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-09-05 UTC"],[[["\u003cp\u003e\u003ccode\u003eGap\u003c/code\u003e represents spaces within stroke patterns for shapes like Polylines, Polygons, and Circles on a map.\u003c/p\u003e\n"],["\u003cp\u003eIt's defined by a single property: \u003ccode\u003elength\u003c/code\u003e, which specifies the gap's length in pixels.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a \u003ccode\u003eGap\u003c/code\u003e using its constructor, providing the desired length.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGap\u003c/code\u003e objects are immutable, meaning their properties cannot be changed after creation.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003ePatternItem\u003c/code\u003e and is part of the Maps SDK for Android.\u003c/p\u003e\n"]]],[],null,["public final class **Gap** extends [PatternItem](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/PatternItem) \nAn immutable class representing a gap used in the stroke pattern for a [Polyline](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/Polyline) or the\noutline of a [Polygon](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/Polygon) or [Circle](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/Circle). \n\nInherited Constant Summary \nFrom interface android.os.Parcelable \n\n|-----|-------------------------------|---|\n| int | CONTENTS_FILE_DESCRIPTOR | |\n| int | PARCELABLE_WRITE_RETURN_VALUE | |\n\nField Summary\n\n|--------------------|--------------------------------------------------------------------------------------------------------|----------------------------------|\n| public final float | [length](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/Gap#length) | Length in pixels (non-negative). |\n\nPublic Constructor Summary\n\n|---|-------------------------------------------------------------------------------------------------------------------------------------------|\n| | [Gap](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/Gap#Gap(float))(float length) Constructs a `Gap`. |\n\nPublic Method Summary\n\n|--------|----------------------------------------------------------------------------------------------------------------|\n| String | [toString](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/Gap#toString())() |\n\nInherited Method Summary \nFrom class [com.google.android.libraries.maps.model.PatternItem](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/PatternItem) \n\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| boolean | [equals](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/PatternItem#equals(java.lang.Object))(Object o) |\n| int | [hashCode](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/PatternItem#hashCode())() |\n| String | [toString](/maps/documentation/android-sdk/reference/com/google/android/libraries/maps/model/PatternItem#toString())() |\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface android.os.Parcelable \n\n|---------------|--------------------------------------|\n| abstract int | describeContents() |\n| abstract void | writeToParcel(Parcel arg0, int arg1) |\n\nFields \n\npublic final float\n**length** \nLength in pixels (non-negative).\n\nPublic Constructors \n\npublic\n**Gap**\n(float length) \nConstructs a `Gap`. \n\nParameters\n\n| length | Length in pixels. Negative value will be clamped to zero. |\n|--------|-----------------------------------------------------------|\n\nPublic Methods \n\npublic String\n**toString**\n() \n\u003cbr /\u003e"]]