Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 TabActivity,它承载一个 ActivityGroup。ActivityGroup 启动了一个活动,当我按下后退按钮时,会调用哪个“onBackPressed”方法?
如果您没有在 BackPressed 上覆盖,则后按将导致进入 tabwidget 之前的活动。如果您想覆盖它,您需要在选项卡下的各个活动中进行。