Android Question Editable Grid using CustomListView

Mashiane

Expert
Licensed User
Longtime User
This is a class to draw an editable grid on a customlistview. The intention is to have a grid that you can edit and save contents to a database during run time.

1. Add columns specifying their characteristics. Currently the label, textbox and dropdownlist are supported.
2. Add rows to the grid.
3. Use getrow method to return the contents of a row as a map with column and value keys

Bug: For some reason the landscape mode now cuts the display. Potrait mode works with a code tweak.
 

Attachments

  • Screenshot_2013-08-13-23-03-16.png
    Screenshot_2013-08-13-23-03-16.png
    124.7 KB · Views: 1,174
  • Screenshot_2013-08-13-23-03-28.png
    Screenshot_2013-08-13-23-03-28.png
    113.7 KB · Views: 1,078
  • mashiane_editablegrid.zip
    40.5 KB · Views: 793
Last edited:

Mashiane

Expert
Licensed User
Longtime User
Thanks Erel, I used the hsv as its working perfectly. The only thing is that in landscape mode of my phone the rest of the controls in the grid gets cut off. However so far so good in terms of what I need to do with this. Maybe you can find something Im missing for the unproper display but for now I'm closing this. Thanks a lot!
 

Attachments

  • Screenshot_2013-08-13-21-13-51.png
    Screenshot_2013-08-13-21-13-51.png
    105.9 KB · Views: 668
Last edited:
Upvote 0
Top