---
title: "tabhost"
author: "xihuan&java"
date: "2011-06-30T21:14:03Z"
tags: []
categories: ["移动开发"]
slug: "tabhost"
draft: false
lastmod: "2011-06-30T21:14:03Z"
id: 1111567
url: "https://wdwheyr.iteye.com/blog/1111567"
---

```java

	for (int i =0; i < tabWidget.getChildCount(); i++) {
//            tabWidget.setBackgroundColor(Color.WHITE);
			tabWidget.setBackgroundResource(R.drawable.bg);
//                tabWidget.getChildAt(i).getLayoutParams().height = 50;
                 TextView tv = (TextView) tabWidget.getChildAt(i).findViewById(android.R.id.title);
	                tv.setTextColor(Color.BLACK);
	                tv.setTextSize(18);
	                tv.setHighlightColor(Color.BLUE);
	               
               // .rgb(49, 116, 171)
    }

```