dongjunkun / DropDownMenu

一个实用的多条件筛选菜单
3.59k stars 787 forks source link

个人建议,用户可以按标签编号修改tab文字 #44

Open yongchao1210 opened 6 years ago

yongchao1210 commented 6 years ago
/**
 * 改变tab文字
 *
 */
public void setTabText(int position, String text) {
    if (null != tabMenuView.getChildAt(position * 2) && tabMenuView.getChildAt(position * 2) instanceof TextView) {
        ((TextView) tabMenuView.getChildAt(position * 2)).setText(text);
    }
}