fullscreen 相关问题

全屏对象占据整个屏幕。

visionOS WKWebView 全屏错误

我在VisionOS中尝试在窗口中实现WKWebView时遇到问题,并且当尝试全屏执行并退出全屏时,webview的大小发生变化,变得sm...

回答 1 投票 0

使 Delphi 应用程序完全全屏的最佳方法是什么?

使 Delphi 应用程序(Delphi 2007 for Win32)完全全屏、删除应用程序边框并覆盖 Windows 任务栏的最佳方法是什么? 我正在寻找一些模拟的东西...

回答 10 投票 0

Windows / Chrome / ATI / 浏览器跨多个显示器全屏

我正在使用以下测试设置(最新含义截至 2012 年 7 月 14 日): 配备 ATI FirePro V9800 (Eyefinity) 的 Core i7 Windows 7 Pro 64 位(最新更新/补丁) 最新的催化剂驱动程序 纬度...

回答 1 投票 0

如何在ReactPlayer中禁用键盘F上的全屏?

问题是,如果我单击播放视频,并在相邻组件中写入内容,然后不小心按了键盘上的 F 键,那么另一个组件中的视频就会消失...

回答 1 投票 0

全屏C# Windows窗体覆盖所有显示器

有没有办法让 Windows 窗体应用程序全屏显示并黑掉辅助显示器?所以主显示器位于您的主显示器上,所有其他显示器都很完整......

回答 4 投票 0

创建全屏自定义Toast

我最近按照教程尝试了自定义Toast: http://developer.android.com/guide/topics/ui/notifiers/toasts.html#CustomToastView 有了这样的布局: 我最近按照教程尝试了自定义 Toast: http://developer.android.com/guide/topics/ui/notifiers/toasts.html#CustomToastView 这样的布局: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/toast_layout_root" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="8dp" android:background="#DAAA" > <ImageView android:src="@drawable/droid" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="8dp" /> <TextView android:id="@+id/text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#FFF" /> </LinearLayout> 但是根布局中的fill_parent好像没有作用 您知道如何解决此问题以获得全屏 Toast 吗? 在显示 Toast 之前添加此内容: toast.setGravity(Gravity.FILL, 0, 0); 要完全填满吐司容器的水平和垂直尺寸,您需要使用 Gravity.FILL,如 Yoah 的回答中所述。 我尝试遵循并且成功了。 Toast toast = new Toast(getApplicationContext()); toast.setGravity(Gravity.FILL, 0, 0); toast.setView(view); //inflated view toast.setDuration(Toast.LENGTH_LONG); toast.show(); 您可以使用这种方法: (自定义布局:toast_layout.xml) <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:background="#80000000" <!-- Semi-transparent black background --> android:gravity="center"> <TextView android:id="@+id/textViewToast" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#FFFFFF" <!-- White text color --> android:textSize="18sp" android:textStyle="bold" android:padding="16dp"/> </LinearLayout> (处理这个Toast的后端) import android.content.Context; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.widget.TextView; import android.widget.Toast; public class FullScreenToast { public static void showFullScreenToast(Context context, String message) { LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View layout = inflater.inflate(R.layout.toast_layout, null); TextView textViewToast = layout.findViewById(R.id.textViewToast); textViewToast.setText(message); Toast toast = new Toast(context); toast.setGravity(Gravity.FILL_HORIZONTAL | Gravity.FILL_VERTICAL, 0, 0); toast.setDuration(Toast.LENGTH_LONG); toast.setView(layout); toast.show(); } } (现在使用自定义Toast) FullScreenToast.showFullScreenToast(this, "This is a full-screen toast!");

回答 3 投票 0

iOS 上的 PWA 重定向后是否可以返回全屏模式?

我使用 Angular 和 oauth 库构建了一个 pwa。 当用户打开页面时,系统会要求他登录,并被重定向,成功登录后,他会被重定向到我的页面。 该页面有效

回答 1 投票 0

TAdvWebBrowser 中的 Delphi 10.4 全屏 Iframe 视频

我在 TAdvWebBrowser 中有一个 Iframe 格式的视频。当我单击全屏按钮时,什么也没有发生。 var HTML:=' <p>我在 TAdvWebBrowser 中有一个 Iframe 格式的视频。当我单击全屏按钮时,没有任何反应。</p> <pre><code>var HTML:=&#39;&lt;iframe src=&#34;&#39;+URL+&#39;&#34;frameborder=&#34;0&#34; allow=&#34;autoplay; fullscreen; picture-in-picture&#34; style=&#34;position:absolute;top:0;left:0;width:100%;height:100%;&#34;&lt;/iframe&gt;&#39;; WebBrowser.LoadHTML(HTML); </code></pre> <p>我需要全屏播放视频。 这可能吗?</p> <p><a href="https://i.stack.imgur.com/ah6DE.jpg" target="_blank"><img src="https://cdn.txt58.com/i/AWkuc3RhY2suaW1ndXIuY29tL2FoNkRFLmpwZw==" alt=""/></a></p> </question> <answer tick="false" vote="1"> <p>为了全屏显示视频,您需要执行以下操作</p> <ol> <li>将您的应用程序切换到全屏窗口。 <a href="https://stackoverflow.com/a/14472/3636228">使 Delphi 应用程序完全全屏的最佳方法是什么?</a></li> <li>调整浏览器组件的大小,使其填满整个窗口。</li> </ol> <p>编辑:查看<a href="http://www.tmssoftware.biz/Download/Manuals/TMS%20TAdvWebBrowser%20Developers%20Guide.pdf" rel="nofollow noreferrer">TAdvWebBrowser开发人员指南</a>,似乎<pre><code>TAdvWebBrowser</code></pre>不支持检测网页的HTML元素何时进入或离开全屏模式。</p> </answer> </body></html>

回答 0 投票 0

如何使用jQuery在全屏模式下打开新页面而不刷新

我想在 jQuery 中打开一个页面而不刷新和更改当前模式(全屏模式),在我的页面上默认打开全屏,我想将用户重定向到另一个页面

回答 1 投票 0

TAdvWebBrowser Delphi 10.4 中的全屏 iframe 视频

我在 TAdvWebBrowser 中有一个 iframe 格式的视频。当我单击全屏按钮时,什么也没有发生。 var HTML:=' <p>我在 TAdvWebBrowser 中有一个 iframe 格式的视频。当我单击全屏按钮时,没有任何反应。</p> <pre><code>var HTML:=&#39;&lt;iframe src=&#34;&#39;+URL+&#39;&#34;frameborder=&#34;0&#34; allow=&#34;autoplay; fullscreen; picture-in-picture&#34; style=&#34;position:absolute;top:0;left:0;width:100%;height:100%;&#34;&lt;/iframe&gt;&#39;; WebBrowser.LoadHTML(HTML); </code></pre> <p>`</p> <p>我需要视频在屏幕上完整显示,而不是在组件中。 有可能的?有人可以帮助我吗?</p> <p><a href="https://i.stack.imgur.com/ah6DE.jpg" target="_blank"><img src="https://cdn.txt58.com/i/AWkuc3RhY2suaW1ndXIuY29tL2FoNkRFLmpwZw==" alt="enter image description here"/></a></p> </question> <answer tick="false" vote="0"> <p>为了全屏显示视频,您需要执行以下操作</p> <ol> <li>将您的应用程序切换到全屏窗口。 <a href="https://stackoverflow.com/a/14472/3636228">使 Delphi 应用程序完全全屏的最佳方法是什么?</a></li> <li>调整浏览器组件的大小,使其填满整个窗口。</li> </ol> </answer> </body></html>

回答 0 投票 0

fullscreenchange 事件在 Chrome 中未触发

我正在尝试监视浏览器何时进入全屏模式。 在我搜索的所有地方都会引用该博客作为全屏 API 的指南。 http://robertnyman.com/2012/03/08/using-the-fullscr...

回答 3 投票 0

允许自动使用全屏API或在自己的浏览器版本中模拟按键

我尝试让我的网站自动全屏加载,无需用户输入。然而,这似乎不可能通过 Javascript 实现全屏 API。模拟按键 (F11) 也是...

回答 1 投票 0

如何全屏显示QLabel?

我有一个带有 QPushButton 和 QLabel 的用户界面。我希望每当我按下该按钮时,QLabel 都会在我的笔记本电脑上全屏显示。 我尝试了以下代码: 无效主窗口::

回答 3 投票 0

Tkinter 在全屏上显示图像

我正在尝试为菜单设置背景图像。然而,图像带有一些我无法完全删除的白色填充。 图像工作正常,它是我放置在屏幕上的每个元素......

回答 1 投票 0

从 vp9 编码器(libvpx 库)检测图像变化

我在屏幕共享项目中使用 libvpx 库,其中我使用 vp9 编码器和 svc 技术对视频进行编码,然后进行解码。我首先使用第三方捕获屏幕数据(RGB)

回答 1 投票 0

如何在 IOS 上禁用本机全屏

我正在使用videojs来播放视频。是否可以禁用 IOS iphone 中的本机全屏并使用 videojs 全屏? 我尝试了 playsiline 标签,但它不起作用。 非常感谢

回答 1 投票 0

Kivy 应用程序显示在屏幕左下角

我的 Kivy 应用程序显示在手机屏幕的左下角(您可以在共享屏幕截图中看到)。但我想将其设置为全屏。我在“buildozer.spec”中将“fullscreen”的值设置为 1

回答 1 投票 0

如何确定边到边启用?

如何在我的片段中确定在活动中启用边缘到边缘功能 WindowCompat.setDecorFitsSystemWindows(窗口,假) 有任何想法吗? 是否可以获取WindowCompat的值。

回答 1 投票 0

如何在全屏模式下拍摄命令提示符窗口的快照

如果命令提示符窗口以全屏模式运行,我需要拍摄快照。 我尝试过使用 PrintScreen、Ctrl+PrintScreen、Ctrl+Alt+PrintScreen 按钮,但似乎没有任何效果 还有...

回答 8 投票 0

Raspberry Pi 64 位操作系统中的 Tkinter 全屏错误

我想在 RaspberryPi 中制作一个基于 tkinter 的 GUI。我需要它处于全屏模式。我有以下脚本: 从 tkinter 导入 * 赢 = Tk() win.geometry("650x250") 标签=啦...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.