Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在列表视图中有目录列表和列表
我想从项目中删除所有项目 00 3-0 rec deele 中的部分文本。
执行此操作的简单方法是在适配器中为列表视图格式化文本。
您可以在适配器的 getView 中执行此操作
使用 yourString.replace("00 3-0",""); 在 getView 或您的项目列表中通过迭代它们。
看这里
改变这个
list.add(m.group(1));
至
list.add((m.group(1)).replace("00 3-0",""));