• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

database data -to-> List view, how

 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how populate a List View from database table records[sqlite]?
is more easy to populate with DB TABLE RECORDS:
1.RADIO BUTTONS or
2.LIST VIEW + RADIO BUTTONS ??

May in RADIO BUTTON GROUP have a LIST VIEW and again inside it(LIST VIEW) RADIO BUTTONS???
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the connection between radio buttons, a list view, and data in a DB? Make sure to KeepItDown.
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use SimpleCursorAdapter.
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:What's the connection between radio buttons, a list view, and data in a DB? Make sure to KeepItDown.


may in List view appear radios? >>>>

each item in List View will have a radio, and the text will be from database table fields(concatenated)... when choose a radio and press MENU to appear menu of buttons or identically press a button at end of List, and you will choose edit/delete record or call record, well,

How a checked radio id[in a radio button group] is extracted in an Activity?
 
Misha van Tol
Ranch Hand
Posts: 56
Android Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Leonidas Savvides wrote:
may in List view appear radios?

Sure, you can create any View you want using all View widgets.
You'll need to override the getView method of the adapter to setup and fill each item.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic