gpt4 book ai didi

android - 如何通过方向更改来控制 View 可见性(可见/不可见)?

转载 作者:行者123 更新时间:2023-11-29 01:13:32 28 4
gpt4 key购买 nike

<分区>

我想设计这样的布局:

纵向模式 xml:

<RelativeLayout>
<ToolBar>
<ToolBar>
<TextView>
</TextView>
<VideoView>
<VideoView>
<Webview>
</Webview>
</RelativeLayout>

横向模式 xml:

 <RelativeLayout>
<VideoView>
<VideoView>
</RelativeLayout>

其他 View 在横向模式下是不可见的。提前致谢。我是 android 开发的新手。

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com