I am using custom background for my Tab layout, but it displaying something different. As
but I want as

and my code is as
for(int i = 0; i < tabHost.getTabWidget().getChildCount(); i++) {
tabHost.getTabWidget().getChildAt(i).setBackgroundColor(Color.parseColor("#0079AD"));
((TextView) tabHost.getTabWidget().getChildAt(i).findViewById(android.R.id.title)).setTextColor(Color.parseColor("#8CD7F2"));
}
tabHost.getTabWidget().getChildAt(tabHost.getCurrentTab()).setBackgroundColor(Color.parseColor("#009ED6"));
how can I solve this?
For getting effect as I wan’t I am using drawable image as follow and I am getting result as I wan’t almost same as your.
=======================
}
and TabChangeListener you might be already added.