Tencent / QMUI_Android

提高 Android UI 开发效率的 UI 库
http://qmuiteam.com/android
Other
14.42k stars 2.67k forks source link

我想删除QMUISection里面的其中一个SectionItem要如何做到? #1065

Open DiQiShiSanTianZhi opened 3 years ago

DiQiShiSanTianZhi commented 3 years ago

运行环境

具体问题描述

问题截图

Layout Inspector 文件(如何获取)

异常日志(堆栈)

DiQiShiSanTianZhi commented 3 years ago

默认mItemList是私有的并且没有返回也没有对应删除的方法

shelpy commented 3 years ago

mItemList 由 QMUISection 构造函数传入的吧

DiQiShiSanTianZhi commented 3 years ago

对的,通过传入mItemList构造QMUISection ,但是mItemList是私有的,外部可以持有mItemList引用,但是很麻烦;我就想和删除QMUISection 一样有个可以删除mItemList的功能。