如何从子活动更改 TabActivity 的视图
我有一个带有 4 个选项卡的 TabActivity。当用户单击第四个选项卡时,将显示 ListView Activity。然后,当用户单击列表中的一项时,将启动另一个播放视频的 Activity,并且所有选项卡均可见。我想隐藏选项卡和其他所有内容,以便视频尽可能大,但我很难弄清楚如何从辅助活动中操纵 TabActivity 的视图。打电话:
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
就是不做。有人知道吗?
I have a TabActivity with 4 tabs. When a user clicks on the 4th tab, a ListView Activity is displayed. Then when a user clicks on one of the items in the list, yet another Activity is launched that plays videos, and all the tabs are visible. I would like to hide the tabs and everything else so the video can be as big as possible, but I am having a hard time figuring out how to manipulate the TabActivity's view from within the secondary Activity. Calling:
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
is not doing it. Anyone know?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果隐藏视频播放的所有选项卡,如何返回选项卡界面?按返回键?如果你想这样做,为什么不直接启动一个活动呢?
您永远无法使用 setFlags 隐藏选项卡视图。
If you hide all tab for video playing,how do you return to tab interface?press back key?if you want to do that ,why don't just launch an activity?
You can never hide tab views by using setFlags.