Lee wrote: > I've got a tabhost that has a number of tabs that all contain a > ListView (among other widgets). > > I need to address each ListView separately and so they all have a > unique ID that is not @+android:list. > > How does one define the empty text for a list if the only way that it > can be done is through the assumption that the list will have an id of > @+id/android:list and the empty text @+id/android:empty
For an empty list, just make the ListView be invisible (setVisibility(View.INVISIBLE)) and make an associated TextView be visible. Use FrameLayout (or RelativeLayout) so they can take up the same space in the GUI, just one or the other being visible. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

