Android TV 上的全分辨率 WebView [英] Full resolution WebView on Android TV

查看:73
本文介绍了Android TV 上的全分辨率 WebView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 1080p 模拟器和智能电视 (nVidia Shield) 上,我只能获得 960x540 的 WebView.是否可以改用可用的整个分辨率?

On a 1080p emulator and Smart TV (nVidia Shield) I only get a 960x540 WebView. Is it possible to use the whole resolution available instead?

推荐答案

使用 Android TV 的 HDTV 被视为具有 2x 像素比的 960x540px 显示器.不确定如何识别 4k 电视,但要使用所有像素,请检查 window.devicePixelRatio .

An HDTV using Android TV is considered as 960x540px display with 2x pixel ratio. Not sure how a 4k TV is recognized, but to use all the pixels, check window.devicePixelRatio .

这篇关于Android TV 上的全分辨率 WebView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆