Added in API level 5
  
  
  
  
  
   
  
  
  
  
  
  
  
  
  
  
  
  
Summary:
  Methods
  
  | Inherited Methods
LineHeightSpan.WithDensity
  public
  static
  
  
  interface
  LineHeightSpan.WithDensity
  
  
      implements
      
        LineHeightSpan
      
  
  
| android.text.style.LineHeightSpan.WithDensity | 
The classes that affect the line height of paragraph with respect to density, should implement this interface.
Summary
Public methods | |
|---|---|
        abstract
        
        
        
        
        void
     | 
  
    
      
      chooseHeight(CharSequence text, int start, int end, int spanstartv, int lineHeight, Paint.FontMetricsInt fm, TextPaint paint)
      
      
        Classes that implement this should define how the height is being calculated.  | 
  
Inherited methods | |
|---|---|
Public methods
chooseHeight
    Added in API level 5
  
      
  
    public abstract void chooseHeight (CharSequence text, int start, int end, int spanstartv, int lineHeight, Paint.FontMetricsInt fm, TextPaint paint)
Classes that implement this should define how the height is being calculated.
| Parameters | |
|---|---|
text | 
        
          CharSequence: the text | 
      
start | 
        
          int: the start of the line | 
      
end | 
        
          int: the end of the line | 
      
spanstartv | 
        
          int: the start of the span | 
      
lineHeight | 
        
          int: the line height | 
      
fm | 
        
          Paint.FontMetricsInt  | 
      
paint | 
        
          TextPaint: the paint |