Android ListActivity not working with custom adapter?

Android:attr/listPreferredItemHeight as well. That will keep your rows from getting too short.

Add android:orientation="vertical" to your top id/linearLayout1 (not the row). On your row, you might want to add android:minHeight="? Android:attr/listPreferredItemHeight" as well.

That will keep your rows from getting too short.

Sigh...I knew it had to be something small and simple. The top level LinearLayout being horizontal was of course the issue. Thanks.

– KennyPowers Jun 16 at 22:16.

You are not setting anything in your getView method. Check Efficient Adapter here is link.

That does not appear to be my issue. I was originally setting the text for the TextView in list_item_layout using TextView.setText(), and it still didn't show anything. I removed that to make the example shorter, but I would still expect the code I posted above to result in a list containing 6 entries, all containing the default text from the TextView.

– KennyPowers Jun 16 at 20:55.

I am having trouble with what appears to be a simple use of a ListActivity with a custom adapter. List_item_layout is just a LinearLayout with a single TextView in it, so I would expect to see 6 identical items in my list, but the list is empty. I've stepped through CustomRowAdapter.getView() and it is being called with positions 0 through 5.

I must be missing something simple. Why is the list appearing empty?

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