Skip to content Skip to sidebar Skip to footer

Text Not Showing Up In Listview When Using A Custom Adapter

For some reason, I can't get text to show up in my list view. When I run the following example, two blank list elements appear with no text. Also, the debugging output shows that t

Solution 1:

I dont see setContentView(..), maybe thats the problem?

Solution 2:

I was using the Data Binding example from the book Hello Android by Ed Burnette (great book).

I changed the item layout from A RelativeLayout to a LinearLayout; however, I did not add an orientation when I made the change.

Once I added android:orientation="vertical" everything worked fine.

Two hours of my life on this one.

Post a Comment for "Text Not Showing Up In Listview When Using A Custom Adapter"