假设您正在使用TabHost - 如果您需要以编程方式设置当前选项卡,则可以使用 TabHost#setCurrentTab(INT) 要么 TabHost#setCurrentTabByTag(字符串)