@Override
    public void onCreate(Bundle savedInstanceState)  
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tabbar);
        
        TabHost tabHost = getTabHost();
      

                
        // Tab for Docket Calculator
        Intent DocketCalculatorIntent = new Intent(this, DocketCalc.class);
        TabSpec DocketCalculatorspec = tabHost.newTabSpec("Docket Calculate"); 
        
        
        DocketCalculatorspec.setIndicator("Calculate",getResources().getDrawable(R.drawable.iphonecalculator)).setContent(DocketCalculatorIntent); 
        tabHost.addTab(DocketCalculatorspec);
        
        //tabHost.getTabWidget().getChildAt(0).getLayoutParams().height =65;
        
        
        // Tab for Date Calculator
        Intent DateCalculatorIntent = new Intent(this, SongsActivity.class);
        TabSpec DateCalculatorSpec = tabHost.newTabSpec("Date");
        // setting Title and Icon for the Tab
        DateCalculatorSpec.setIndicator("Date Calculate",getResources().getDrawable(R.drawable.iphonedate)).setContent(DateCalculatorIntent);
        tabHost.addTab(DateCalculatorSpec);
        
        
        // Tab for Options
        Intent OptionsIntent = new Intent(this, VideosActivity.class);
        TabSpec OptionsSpec = tabHost.newTabSpec("Options");
        OptionsSpec.setIndicator("Options",getResources().getDrawable(R.drawable.iphoneoption)).setContent(OptionsIntent);
         
        tabHost.addTab(OptionsSpec); // Adding videos tab
        tabHost.setCurrentTab(Global.cTab);
        
        for(int i=0;i<=tabHost.getTabWidget().getChildCount();i++) 
        { 
            TextView tv = (TextView) tabHost.getTabWidget().getChildAt(i).findViewById(android.R.id.title); //Unselected Tabs
            ((android.widget.TextView) tv).setTextColor(Color.parseColor("#ffffff"));
        } 
        TextView tv = (TextView) tabHost.getCurrentTabView().findViewById(android.R.id.title); //for Selected Tab
        ((android.widget.TextView) tv).setTextColor(Color.parseColor("#000000"));
        
       }
}

Add a code snippet to your website: www.paste.org