I want to create a custom listview of the following format. for example
_______________________________________
| |
| ----------- ------------ |
| Principal EditView |
| ----------- ------------ |
| |
| ----------- ------------ |
| Years EditView |
| ----------- ------------ |
| |
| ----------- ------------ |
| Rate of Int EditView |
| ----------- ------------ |
|_______________________________________|
_______________________________________
| |
| ----------- ------------ |
| Interest EditView |
| ----------- ------------ |
|_______________________________________|
_______________________________________
| |
| ----------- ------------ |
| Simple Int EditView |
| ----------- ------------ |
|_______________________________________|
_______________________________________
| |
| ------------ ------------ |
| Compond Int EditView |
| ------------ ------------ |
|_______________________________________|
in-short the item1 in listview should contain 3 text and editviews and item2 should have 2 text and editview. both item should get different input.
since i am new to android, i was able to create simple listview, but i have no idea how to create a listview with various views.
you need to create a custom adapter, this adapter will be able to inflate its own xml view for each cell.
your new xml view should simple have the most complicated layout that your listview will use, and for each cell that doesn’t use information for a subview, simply set that subview to invisible.
this should at least guide you in the right direction