Layout.TextInclusionStrategy
  public
  static
  
  
  interface
  Layout.TextInclusionStrategy
  
  
  
| android.text.Layout.TextInclusionStrategy | 
Strategy for determining whether a text segment is inside a rectangle area.
Summary
Public methods | |
|---|---|
        abstract
        
        
        
        
        boolean
     | 
  
    
      
      isSegmentInside(RectF segmentBounds, RectF area)
      
      
        Returns true if this   | 
  
Public methods
isSegmentInside
public abstract boolean isSegmentInside (RectF segmentBounds, RectF area)
Returns true if this TextInclusionStrategy considers the segment with bounds
 segmentBounds to be inside area.
 
The segment is a range of text which does not cross line boundaries or directional run
 boundaries. The horizontal bounds of the segment are the start bound of the first
 character to the end bound of the last character. The vertical bounds match the line
 bounds (getLineTop(line) and getLineBottom(line, false)).
| Parameters | |
|---|---|
segmentBounds | 
        
          RectF: This value cannot be null. | 
      
area | 
        
          RectF: This value cannot be null. | 
      
| Returns | |
|---|---|
boolean | 
        |