How to use xml layout with expandable list?

When using an ExpandableListAdapter, the supplied XML layout needs to have an ExpandableListView element in it with the id attribute set to android.R.id.list. Your problem is in your directions. Xml layout.

Make sure in your directions. Xml there is an ExpandableListView element and it has the id attribute set to andoird.R.id.list. You need to do this in your directoions.

Xml:? Xml version="1.0" encoding="utf-8"?

When using an ExpandableListAdapter, the supplied XML layout needs to have an ExpandableListView element in it with the id attribute set to android.R.id.list. Your problem is in your directions. Xml layout.

Make sure in your directions. Xml there is an ExpandableListView element and it has the id attribute set to andoird.R.id.list. You need to do this in your directoions.xml.

Edited to included xml code! Thanks! – squid267 Oct 25 at 18:15 got it to work!

Thanks – squid267 Oct 25 at 18:20 edited for canonical purposes. Used the code posted by @LalitPoptani and gave him an upvote for credit. – Kurtis Nusbaum Oct 25 at 18:20 where would I put this code?

Android:background="@color/white" in the linear layout or expandablelistview? I already made a value for it in string – squid267 Oct 25 at 18:29 That's a seperate question so please ask it in a new question. That said, why not experiment and try out for yourself?

Experience is the best teacher :) I always find it fun to try out different things to see what does and doesn't work. – Kurtis Nusbaum Oct 25 at 18:32.

You will have to add android inbuilt id for ExpandableListView in xml file like below and remove the id that you declare by your own using android:id="@+id/anyname.

1 for providing the exact code – Kurtis Nusbaum Oct 25 at 18:20 thank you! Works just as expected! – squid267 Oct 25 at 18:20.

Xml layout with expandable list is used (without quotes):. Use xml layout with expandable list.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions