简体   繁体   English

来自Android中数据库的动态列表视图

[英]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视图

  1. When user opens for the first time it has to show "Create New" clicking on which it leads to a new form. 当用户第一次打开时,它必须显示“ Create New”,然后单击它会导致一个新表单。 Upon creation this is saved in a SQLite DB(stationary 1) for example. 创建后,将其保存在例如SQLite DB(平稳1)中。

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.

相关问题 Android动态列表视图 - Android Dynamic List View 如何显示图像从Android中的数据库到自定义列表视图? - How to display image to custom list view from database in android? 来自数据库记录的Android列表视图实现问题 - Problem with the Android List View Implementation from Database Records 搜索从android中的数据库加载的列表视图 - Searching in list view which loaded from database in android 具有动态列表的Android自定义下拉视图 - Android custom drop down view with dynamic list android中自定义列表视图在从数据库更新数据时给出错误 - Custom list view in android giving error while updating data from database in android 从数据库中为动态列表注入Spring依赖项 - Spring dependency injection for a dynamic list from database 无法从MySQL数据库中检索数据并将其放在我的Android应用程序的列表视图中 - Unable to retrieve data from MySQL database and put it in a list view on my android app 如何在从 SQLite 数据库填充的列表视图 android 中进行搜索 - how to make a search in a list view android which is populated from SQLite database 如何在已制成数据库的Android应用程序的列表视图中显示图像? - How to display image in list view for an Android app from an already made database?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM