private void resetTextViewColor(){// ? ? ? ?for (int i=0;i<getChildCount();i++) {// ? ? ? ? ? ?View view = getChildAt(i);// ? ? ? ? ? ?if (view instanceof TextView) {//// ? ? ? ? ? ? ? ?((TextView) view).setTextColor(COLOR_TEXT_NORMAL);//// ? ? ? ? ? ?}//// ? ? ? ?}// ? ?}//// ? ?/**// ? ? * 高亮tab的文本// ? ? * @param pos// ? ? */// ? ?private void highlightTextView(int pos){// ? ? ? ?resetTextViewColor();// ? ? ? ?View view = getChildAt(pos);// ? ? ? ?if (view instanceof ?TextView) {// ? ? ? ? ? ? ? ?((TextView) view).setTextColor(COLOR_TEXT_HIGHLIGHT);// ? ? ? ?}
- 0 回答
- 0 關注
- 1162 瀏覽
添加回答
舉報
0/150
提交
取消