Wednesday, April 27, 2011

[android-developers] Set 2 EmptyView in ListView

hi guys.

i try to set 3 empty view to ListView.

at first, i try to set LinearLayout to EmptyView.
but it doesn't work.

so, i try this code.
        listView.setEmptyView(findViewById(R.id.emptyImage));
        listView.setEmptyView(findViewById(R.id.emptyButton));
        listView.setEmptyView(findViewById(R.id.emptyText));

but it shows only R.id.emptyImage.

is there any way to set mutilple EmptyView to ListView?

thanks.

--
---------------------------------------------
smokerpg
PC: smokerpg888@gmail.com




--
---------------------------------------------
smokerpg
PC: smokerpg888@gmail.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment