This is the code that was used to fix the problem. Setting the padding for the parent View to 0 was necessary:
private void setSelectedTabColor() {
RelativeLayout.LayoutParams rllp = new RelativeLayout.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.FILL_PARENT);
rllp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
rllp.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
int textSize = 22;
final WindowManager.LayoutParams params = getWindow().getAttributes();
View currentView;
int current = mTabHost.getCurrentTab();
for (int i = 0; i < mTabHost.getTabWidget().getChildCount(); i++) {
TextView txt = (TextView) mTabHost.getTabWidget().getChildAt(i)
.findViewById(android.R.id.title);
txt.setTextSize(textSize);
txt.setTypeface(font);
txt.setLayoutParams(rllp);
txt.setGravity(Gravity.RIGHT | Gravity.BOTTOM);
currentView = mTabHost.getTabWidget().getChildAt(i);
LinearLayout.LayoutParams currentLayout = (LinearLayout.LayoutParams) currentView
.getLayoutParams();
currentLayout.setMargins(0, 0, 0, 0);
currentView.setPadding(0, 0, 0, 0);
currentView.setLayoutParams(currentLayout);
currentView.getLayoutParams().height = 100;
if (i == current) {
mTabHost.getTabWidget().getChildAt(i)
.setBackgroundResource(R.drawable.button_type1_active);
txt.setBackgroundResource(R.drawable.button_type1_active);
} else {
mTabHost.getTabWidget().getChildAt(i)
.setBackgroundResource(R.drawable.button_type1);
txt.setBackgroundResource(R.drawable.button_type1);
txt.setTextColor(Color.WHITE);
}
if(i==0||i==1){
txt.setPadding(0, 0, 5, 0);
}
}
}