[英]Dynamic List View from database in android
I am developing an android app in which I have to present the user List views which changes dynamically as follows 我正在开发一个Android应用程序,其中我必须向用户展示动态变化的List视图
2.When user creates and again opens app it has to show 1.Stationary 1 Reorder 2.Create new 2.当用户创建并再次打开应用程序时,它必须显示1.固定1重新排序2.创建新
Please give your valuable advice 请给您宝贵的意见
Regards ChinniKrishna Kothapalli 问候ChinniKrishna Kothapalli
First of all see how to generate a list view.Then you can see how to working with SQLite database so that you can insert and retrieve from the database.Once you are able to do these now you can go for your task.The step is 首先,了解如何生成列表视图,然后了解如何使用SQLite数据库,以便可以从数据库中插入和检索数据库。一旦能够执行这些操作,现在就可以完成任务了。
Retrieve value from the databse
Populate the UI which has a list populated from the retrieval values and a button with text
create and an EditText.
In onClick method of button retrieve the text from EditText and save it to the Database and
refresh the list(adding the newly created one to the list).
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.