简体   繁体   English

如何在列表视图中自动加载 textview 并删除一些 textview

[英]How to auto load textview on a list view and strikethrough some of the textview

I am making a todo app.我正在制作一个待办事项应用程序。 I made a shared preference to save the data to internal storage an an arryadapter to manage my data.我做出了一个共同的偏好,将数据保存到内部存储中,并使用 arryadapter 来管理我的数据。 Everything works well.一切正常。 I added a strikethrough functionality and it works, but when I exit and reopen the app the strikethrough is gone and I don't know how to restrike through the todos in my listview.我添加了删除线功能并且它可以工作,但是当我退出并重新打开应用程序时,删除线消失了,我不知道如何在我的列表视图中重新删除待办事项。 I can populate my listview with the data I extracted from my shared preferences.我可以使用从共享首选项中提取的数据填充我的列表视图。 It shows but it does not strikethrough.它显示但没有删除线。 When I tried to access listview getchild, I get a null exception当我尝试访问 listview getchild 时,出现 null 异常

Whenever you are checking the task, save its check status in the shared preference depends on check status you can perform strikethrough每当您检查任务时,将其检查状态保存在共享首选项中取决于您可以执行删除线的检查状态

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM