The following code, but does not show on the Tab after running out there ListItem, what's the problem?
public void onCreate (Bundle savedInstanceState) {
super.onCreate (savedInstanceState);
myTabhost = this.getTabHost ();
LayoutInflater.from (this) inflate (R.layout.activity_main, myTabhost.getTabContentView (), true);.
myTabhost.addTab (. myTabhost.newTabSpec ("tab1") setIndicator ("tab1", getResources () getDrawable (R.drawable.calendar)) setContent (R.id.tab1)..);
myTabhost.addTab (myTabhost.newTabSpec ("tab2") setIndicator ("tab2", getResources () getDrawable (R.drawable.ic_launcher)) setContent (R.id.tab2)...);
myTabhost.addTab (myTabhost.newTabSpec ("tab3") setIndicator ("tab3") setContent (R.id.tab3)..);
listView1 = (ListView) findViewById (R.id.listView1);
data = new ArrayList
No comments:
Post a Comment