Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
    
    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 2025-02-10 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 2025-02-10 UTC."],[],[]]