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.
我有一个已选中的扫描选项卡。第一次按下它时,它会启动相机。如果我们在不扫描的情况下按返回,则会看到下面的图像。现在我想通过单击扫描选项卡再次启动相机,而不更改选项卡。如何执行此操作?
当您返回活动时,请在选项卡上执行 setSelected(false)。