Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A QuizCourse Queries Syllabus Queries 3 years ago
User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
manpreet
Best Answer
3 years ago
My application includes two activities :
1st activity will contain set of buttons created dynamically from the xml file, when we click on these buttons 2nd activity starts. In 2nd activity i have expandable list view to be populated according to the button clicked in 1st activity.
My xml file is like this :
In above xml file class attribute name is my button of 1st activity. like
class 3
class 4
class 5
class 6
when the user clicks on particular button he will be taken to another activity with expandable list view, it looks like this:
-->CBSE
-->ICSE
Now i need to populate this expandable list view dynamically from the xml with the child nodes of particular class tag in xml. For example if user clicks on class3 button expandable list view has to get populated with ICSE and CBSE.
And if user clicks on class4 button expandable list view has to get populated with ICSE, CBSE and SSC dynamically from xml.
Please help me how to do this with sample code.
Thank you in advance.