Home > Mobile >  How about android programming can make a textview read data in the database, and display
How about android programming can make a textview read data in the database, and display

Time:09-27

There are some data in the database, such as: name, age, I want to let them show on different textview respectively, code should be how to write ah,

There are about more than 20 such data in the database, how to implement call

CodePudding user response:

Textview could not read the database, it is just a display control, data should be displayed textview database, you need to retrieve the data from the database (database)

CodePudding user response:

This kind of problem I think is very simple, is not to display data textView? Your data out don't distinguish out name, age? Can distinguish the display to you specify the textView can not! As for the subsequent how to optimize the interface, how to optimize the database are the subsequent thing!

CodePudding user response:

This involves the basic database operation, this will be? Another in a list control according to the data, each item is a textView, setText to textView setting content,

CodePudding user response:

First learn to operate the database, the data read out to the collection, and then the data set into the textview, but this situation is recommended list
  • Related