package soo.elements.activity;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class TabActivityTest extends TabActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        TabHost th = getTabHost();
        
        th.addTab(
	        th.newTabSpec("TAB_TEST1")
	        .setIndicator("TAB 1")
	        .setContent(R.id.textView01)
        );
        
        th.addTab(
	        th.newTabSpec("TAB_TEST2")
	        .setIndicator("TAB 2")
	        .setContent(R.id.textView02)
        );
        
        th.addTab(
    	        th.newTabSpec("TAB_TEST3")
    	        .setIndicator("TAB 3")
    	        .setContent(R.id.imageView01)
            );
        
        th.addTab(
        		th.newTabSpec("TAB_TEST4")
        		.setIndicator("TAB 4")
        		.setContent(new Intent(this,SubActivity.class))
        );
        
        th.setCurrentTab(2);
        //this.addTab("Tab_Test1").set
    }
}