I’m a beginner in Android programming. I’m trying to make an application that shows a listview with different valors that depend on which tab i pressed. The problem I’m having is to put a Listview inside a tabhost and call it from the code. Anyone can explain me how to do it? I’ve searched in the web but the examples doesnt answer me totally.
Thank you!
I’m a beginner in Android programming. I’m trying to make an application that shows
Share
You dont want to put list view in tabHost. Instead of that do this.
Main Activity – Where you implement the tabHost. Here you can create tabs and link it to specific activity.
FirstTabActivity – Implement your code here with your
ListViewas like normal activity.SecondTabActivity – Implement your code here with your
ListViewas like normal activity.ThirdTabActivity – Implement your code here with your
ListViewas like normal activity.And So On.
EDIT
Tutorial – See Here.