Android Studio实现RecyclerView
实现类微信界面见前篇:
AS实现类微信界面:https://blog.csdn.net/qq_44841678/article/details/105005148.
要求:
用RecyclerView实现各种布局
实现界面展示:
滑动删除:(左右滑动删除)
顶部悬浮:(吸顶)
展开和收缩:
前端页面设计:
注意要使用RecyclerView,则必须导入一个support-v7的包,在最外层的布局文件中使用RecyclerView,之后创建item.xml,主要展示出来的布局在item.xml中编辑。列如展开收缩效果的布局:
tab03.xml:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"