SuggestionRangeSpan
class SuggestionRangeSpan : CharacterStyle, ParcelableSpan
A SuggestionRangeSpan is used to show which part of an EditText is affected by a suggestion popup window.
Summary
Inherited functions |
From class CharacterStyle
CharacterStyle! |
getUnderlying()
Returns "this" for most CharacterStyles, but for CharacterStyles that were generated by wrap , returns the underlying CharacterStyle.
|
CharacterStyle! |
wrap(cs: CharacterStyle!)
A given CharacterStyle can only applied to a single region of a given Spanned. If you need to attach the same CharacterStyle to multiple regions, you can use this method to wrap it with a new object that will have the same effect but be a distinct object so that it can also be attached without conflict.
|
|
Public constructors
SuggestionRangeSpan
SuggestionRangeSpan()
Public methods
describeContents
fun describeContents(): Int
getBackgroundColor
fun getBackgroundColor(): Int
getSpanTypeId
fun getSpanTypeId(): Int
setBackgroundColor
fun setBackgroundColor(backgroundColor: Int): Unit
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
Properties
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.