Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get list of cells

 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to create a schedule for whole week.So i need to create a custom list of text view to show the schedule for each day.each day they have 3 slots.each slot have 1 to 4 persons.So i need to create a list to show this.the problem is number of person may different from day to day. each day maxium number of persons 12.How to build this list view?
below is example.Monday 1st slot have 2 person,2nd slot have 3 person and 3rd slot have 4 persons.I need to show this type of list for each day in week.

Ex Monyda
ABC
DEF

GHI
JKL
MNO

PQR
STU
VWX
YZA
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The base approach is to use a ListView to display the data, and a ListAdapter to collect the values that will be displayed. If you want to organize the data into categories (Day and slot), then I would use an ExpandableListView and ExpandableListAdapter since it can manage different views and levels for you.

Either way, I would look at this developers page: http://developer.android.com/guide/topics/ui/layout/listview.html
and this tutorial: http://www.vogella.com/articles/AndroidListView/article.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic