I am trying to implement the following background for the application...
For t
For this you must use Custom Tabs ,here is the Code try this :
tabHost= getTabHost();
tabHost.addTab(tabHost.newTabSpec("tab1").setContent(new Intent(this, Activity2.class)).setIndicator(prepareTabView("Names",R.drawable.icon)));
where prepareTabView is method that Inflate View. Then Inflate a view like this :
private View prepareTabView(String text, int resId) {
View view = LayoutInflater.from(this).inflate(R.layout.tabs, null);
ImageView iv = (ImageView) view.findViewById(R.id.TabImageView);
TextView tv = (TextView) view.findViewById(R.id.TabTextView);
iv.setImageResource(resId);
tv.setText(text);
return view;
}
Where tabs XML will look like this :
Then now add your backgroung color as you like..