I've set up an Android TV app using a Webview object and followed the explicit directions as to getting the meta tag's width/height defined (so that they are used when rendering the app). No matter what I do to alter the attributes of the meta tag, they do nothing to change the width and height: Width:912 Height:516 Device Pixel Ratio: 2
I've tried several things like setting various Websetting methods, but no luck. Anyone out there experienced this issue and come up with a resolution? webSettings.setJavaScriptEnabled(true); webSettings.setMixedContentMode(webSettings.MIXED_CONTENT_ALWAYS_ALLOW);//Allow mixed content webSettings.setLoadWithOverviewMode(true); webSettings.setUseWideViewPort(true);//Sets whether the WebView should enable support for the "viewport" HTML meta tag or should use a wide viewport webSettings.setMediaPlaybackRequiresUserGesture(false); webSettings.setDomStorageEnabled(true); webSettings.setDatabaseEnabled(true); webSettings.setJavaScriptCanOpenWindowsAutomatically(true); webSettings.setBuiltInZoomControls(true); webSettings.setSupportZoom(true); Here's the meta viewport tag <meta name="viewport" content="width=1920,height=1280,initial-scale=0" /> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/5bda26a2-3e10-4c26-aa74-1e2a859ab262%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.