在看朋友圈时,经常看到当某条信息太多时,会显示部分,然后后面有个展开按钮,点击展开后
展开所有内容
现在就来仿朋友圈展开收缩TextView 功能 自定义TextView;
1.首先定义展示内容的xml
show_context.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height=