Listview in TableLayout?

Not easily, but that is more due to the behavior of ListView not working well with height of wrap_content.

Not easily, but that is more due to the behavior of ListView, not working well with height of wrap_content. I don't think you can call startActivity(myListActivity) because it will pause the activity containing the table layout. That would not be putting a ListView in a TableLayout.

That would be putting a ListView in a totally separate activity.

This is helpful but I'm going to hold off on marking this as the correct answer because "Not easily" isn't necessarily the correct answer. Clarifying why you can't start a list activity in an activity was very helpful. – zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz Apr 23 at 23:33 @kinger9120: Well, to clarify... AFAIK, it is impossible to have a reliably working ListView as a cell in a TableRow, because TableRow forces children to have height of wrap_content, which flat out does not work well with ListView.It should be possible to have a ListView be an immediate child of TableLayout, spanning the whole table width, if you manually set the height to be match_parent... but then there will be no room for any other rows.

Either switch to a Spinner in a table cell or switch away from TableLayout to some other container class (e.g. , RelativeLayout). – CommonsWare Apr 23 at 23:40 After that long rant I tried setting the height of ListView to "300dip" and it worked perfectly. Thanks!

– zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz Apr 24 at 0:15 @kinger9120: And if a fixed size works for you, OK. This is generally difficult to manage across multiple screen sizes. – CommonsWare Apr 24 at 0:25.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions