package credit.android.dg;

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

public class Money extends TabActivity{
		
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		//setContentView(R.layout.bg_stripes);
		
		final TabHost tabHost = getTabHost();
		
		tabHost.setPadding(10, 40, 10, 50);		
		
		
		
		//LayoutInflater.from(this).inflate(R.layout.bg_stripes, tabHost.getTabContentView(), false);
		
		/*requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
		setContentView(R.layout.money);
		getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.header);
		((TextView) findViewById(R.id.header_text)).setText("MONEY");*/
		
		tabHost.addTab(tabHost.newTabSpec("Sold_tab")
                .setIndicator("Sold")
                .setContent(new Intent(this, Sold.class)
                	.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));
		
		tabHost.addTab(tabHost.newTabSpec("Bought_tab")
                .setIndicator("Bought")
                .setContent(new Intent(this, Bought.class)
            	.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));
		
		tabHost.addTab(tabHost.newTabSpec("Legal_tab")
                .setIndicator("Legal")
                .setContent(new Intent(this, Busted.class)
                	.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));
		
		tabHost.addTab(tabHost.newTabSpec("Loans_tab")
                .setIndicator("Loans")
                .setContent(new Intent(this, About.class)
            		.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));
		
	}

}
