View Single Post
Old March 24th, 2010, 12:06 PM   #7 (permalink)
jon21569
Junior Member
 
Join Date: Aug 2008
Posts: 23
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 8 Times in 7 Posts
Default

When the height was set android:layout_height="fill_parent"

in

<TextView
android:id="@+id/header_message"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/main_no_items"/>

it pushed the layout

<ListView
android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>

off the screen. Since the ListView was not visible android knew it would not be able to draw it on the screen so getView() method was never called to render the objects.
jon21569 is offline  
Reply With Quote
The Following User Says Thank You to jon21569 For This Useful Post:
tunneling (March 29th, 2010)