<com.helloheloo.collapsetextview.CollapseTextView
android:id="@+id/coll_tv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:expandText="@string/expand_text"
app:expandTextColor="@android:color/holo_purple"
app:expandImage="@mipmap/but_open_text"
app:originalText="@string/original_text"
app:originalTextColor="@android:color/holo_red_dark"
android:layout_margin="30dp"
app:collapseImage="@mipmap/but_close_text"
/>
app:expandText 需要展开或收缩的文字
app:expandTextColor 需要展开或收缩的文字颜色
app:expandImage 展开图片
app:originalText 默认显示的文字
app:originalTextColor 默认显示的文字颜色
app:collapseImage 收缩图片