Package io.rong.imkit.widget

## Class EllipsizeTextView

- All Implemented Interfaces:

      public class EllipsizeTextView

  可设置多行中间省略的及忽略自动换行效果的 TextView

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public final class` | `EllipsizeTextView.Range` |

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `EllipsizeTextView(Context context)` |
    `EllipsizeTextView(Context context, AttributeSet attrs)` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `setMaxLines(int maxLines)` |
    `void` | `setText(CharSequence text, BufferType type)` |
    `void` | `setEllipsizeText(CharSequence ellipsizeText, int ellipsizeIndex)` |
    `void` | `setAdaptiveText(String text)` | 使用该方法设置TextView的文本内容,不自动适配换行

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### EllipsizeTextView

          EllipsizeTextView(Context context)

    - #### EllipsizeTextView

          EllipsizeTextView(Context context, AttributeSet attrs)

  - ### Method Detail

    - #### setMaxLines

           void setMaxLines(int maxLines)

    - #### setText

           void setText(CharSequence text, BufferType type)

    - #### setEllipsizeText

           void setEllipsizeText(CharSequence ellipsizeText, int ellipsizeIndex)

      Parameters:
        `ellipsizeText` - 省略提示词
        `ellipsizeIndex` - 往后数多少位开始省略

    - #### setAdaptiveText

           void setAdaptiveText(String text)

      使用该方法设置TextView的文本内容,不自动适配换行