Hey
While i was working on open 311 - android application and changing the report submission UI i encountered few things that i would like to discuss.
Currently the report submission is ListView(screenshot attached) and in the getView method switch case is used which changes the items in the ListView as per the requirement. So my question is wouldn't be the use of linear layout placed above each other better ? Wont it be more optimise than using ListView when we have different layouts for each row.?
My idea of implementing the same using Linear Layout is as follows - :
1. Read the response and accordingly design the layout .For MEDIA a linear layout containing camera image in the center can be used , For Location linear layout containing a TextView can be used and so on.
2. Place the linear layouts above each other like a list. For e.g if the report includes media than inflate the media layout on the top. If it includes a description/details of user than inflate other layout just below it.
I would also like to know if there is any other optimise solution when working on these kind of things.
Also does any api for open 311-android exist where i can see the response .
Thanks