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.
我想创建一个应用程序,以便用户可以添加一些警报,如下图所示。我的意思是必须能够为其自身添加另一个参数(新警报)。感谢您的精彩回答;)
我的问题是关于在布局中添加新东西
您必须使用 aListView并且每次您想向您添加另一行时,您ListView只需更新ListView适配器的数据集并调用notifyDataSetChanged()它。
ListView
notifyDataSetChanged()
使用 LsitView 在 Click Here上找到一些帮助
很有帮助