更新时间:2022-05-08 23:22:11
这是一个代码示例,您可以将其放入 onClick() 中.正如马克和凯文所描述的那样.
Here's a code example that you can put inside your onClick(). It's as Mark and Kevin described.
TabActivity tabs = (TabActivity) getParent();
tabs.getTabHost().setCurrentTab(2);
我已经多次使用此代码花絮.希望这能澄清.
I've used this code tidbit numerous times. Hope this clarifies.