效果图:
最近实现业务:点击了解更多加载商品,再点折叠上去,实现方法:item中嵌套expandView
上代码:
<com.xxxx.xxx.widget.ExpandView android:id="@+id/expandView" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/white" android:visibility="gone" android:layout_marginTop="10px" android:layout_below="@+id/tv_learn_more" android:clickable="true"/>
自定义的ExpandView
public class ExpandView extends FrameLayout { private Animation mExpandAnimation; private Animation mCollapseAnimation; private boolean mIsExpand; public ExpandView(Context context) { this(context,null); // TODO Auto