Loading core/java/android/app/ListActivity.java +3 −3 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ import android.widget.ListView; * <p> * Optionally, your custom view can contain another view object of any type to * display when the list view is empty. This "empty list" notifier must have an * id "android:empty". Note that when an empty view is present, the list view * id "android:id/empty". Note that when an empty view is present, the list view * will be hidden when there is no data to display. * <p> * The following code demonstrates an (ugly) custom screen layout. It has a list Loading @@ -59,14 +59,14 @@ import android.widget.ListView; * android:paddingLeft="8dp" * android:paddingRight="8dp"> * * <ListView android:id="@id/android:list" * <ListView android:id="@android:id/list" * android:layout_width="match_parent" * android:layout_height="match_parent" * android:background="#00FF00" * android:layout_weight="1" * android:drawSelectorOnTop="false"/> * * <TextView android:id="@id/android:empty" * <TextView android:id="@android:id/empty" * android:layout_width="match_parent" * android:layout_height="match_parent" * android:background="#FF0000" Loading Loading
core/java/android/app/ListActivity.java +3 −3 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ import android.widget.ListView; * <p> * Optionally, your custom view can contain another view object of any type to * display when the list view is empty. This "empty list" notifier must have an * id "android:empty". Note that when an empty view is present, the list view * id "android:id/empty". Note that when an empty view is present, the list view * will be hidden when there is no data to display. * <p> * The following code demonstrates an (ugly) custom screen layout. It has a list Loading @@ -59,14 +59,14 @@ import android.widget.ListView; * android:paddingLeft="8dp" * android:paddingRight="8dp"> * * <ListView android:id="@id/android:list" * <ListView android:id="@android:id/list" * android:layout_width="match_parent" * android:layout_height="match_parent" * android:background="#00FF00" * android:layout_weight="1" * android:drawSelectorOnTop="false"/> * * <TextView android:id="@id/android:empty" * <TextView android:id="@android:id/empty" * android:layout_width="match_parent" * android:layout_height="match_parent" * android:background="#FF0000" Loading