final View child = view.getChildAt(i);
((TextView) child).setCompoundDrawablesWithIntrinsicBounds(0,
0, 0, bottomDrawableId);
((TextView) child).setTextColor(getResources()
.getColorStateList(bottomTextColorId));
if (i == position) {
// 选中状态
child.setSelected(true);
} else {
// 未选中状态
child.setSelected(false);
}
((TextView) child).setCompoundDrawablesWithIntrinsicBounds(0,
0, 0, bottomDrawableId);
((TextView) child).setTextColor(getResources()
.getColorStateList(bottomTextColorId));
if (i == position) {
// 选中状态
child.setSelected(true);
} else {
// 未选中状态
child.setSelected(false);
}