I've had a similar problem. And here is my solution: Put the header/footer in another wrapper layout (e.g. a FrameLayout maybe), and set this wrapper to be the header/footer.
Hope it works. 在 2012年3月19日星期一UTC+8下午2时56分31秒,gropapa写道: > > hello guys, > I have an expandableListView in wich i add a LinearLayout View as header > and another one for the footer. > After i affect the Adapter, i want to be able to show/hide those views. > The problem is that if i write > myView.setVisibility(View.GONE) > it acts exactly the same as INVISIBLE. > Since it is not possible to removeHeader and add it back... really don't > see how i can fix, if you have any idea > -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en