I want to use two list view in one ListActivity. How can I do this? Please help me to create two different list view in one ListActivity.
Thanks
Deepak
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just create an XML named main.xml file like:
Load this xml file via:
setContentView(R.layout.main);in your onCreate function.allows you to access the first list and then you can apply your adapter to list1. By exchanging 1 to 2 you can access the second ListView as well.