fullscreen

Android: How to have dialogFragment to fullscreen

耗尽温柔 提交于 2019-11-30 05:10:49
Hello I have tried to override the theme to the dialogFragment for fullscreen but the full screen I wanted was an overlay on top of the previous activity so when the dialogFragment is opened, we still can see back activity from the padding between the screen and the dialogFragment. This is the style I have used for full screen <style name="fullscreen_dialog" parent="android:Theme" > <item name="android:windowNoTitle">true</item> <item name="android:windowFullscreen">true</item> <item name="android:windowIsFloating">false</item> </style> Doug Ray You could just manually set the layout params in

XNA: get screen's width and height

本小妞迷上赌 提交于 2019-11-30 04:39:52
how do i get the width and height of the entire screen in XNA? Adrian Grigore This seems to be it (just googled for "xna screen width height" myself): GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width Eddie Parker Empirically I've found that in XNA 4.0 I need to use GraphicsDevice.Viewport.Width GraphicsDevice.Viewport.Height when running windowed mode, as I find GraphicsDevice.DisplayMode.Width GraphicsDevice.DisplayMode.Height gives me the resolution of the entire screen. Hopefully this helps someone else out. GraphicsDevice

Exiting Fullscreen With The HTML5 Video Tag

柔情痞子 提交于 2019-11-30 04:14:01
I'm trying to get the video to exit fullscreen at the end of the video but it won't. I searched and found ways to do this but for the life of me I can't get it to work. I'm testing in the latest version of Chrome (15) and iOS 5 on the iPad2. Here's the code I'm using: <html> <head> <script src="http://code.jquery.com/jquery-2.1.3.min.js"></script> <script> $(document).ready(function(){ $("#myVideoTag").on('ended', function(){ webkitExitFullScreen(); }); }); </script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>854x480</title> </head> <body> <video width="854"

Java setFullScreenWindow() keep on top

寵の児 提交于 2019-11-30 01:51:46
问题 I'm writing an application that is intended to be run on a dual monitor setup, with a "Display" JFrame going fullscreen on one monitor and a "Control" JFrame on the other monitor, sending instructions to the Display. I've tried two separate methods of setting the Display fullscreen; the success of each seems to depend on the OS. display.setUndecorated(true); display.setExtendedState(JFrame.MAXIMIZED_BOTH); Works in Windows, but the JFrame gets hidden under the dock/panels in OS X and Linux.

Eclipse Luna 4.4 fullscreen

半城伤御伤魂 提交于 2019-11-30 01:41:58
How to switch to fullscreen editor mode in Eclipse Luna 4.4? I know the ^m shortcut for maximizing current editor window, but it's not what F11 fullscreen gives in Chrome or in SublimeText. Eclipse Neon (4.6) Details in M7 : The Full Screen feature is now also available on Windows and Linux. You can toggle the mode via shortcut ( Alt + F11 ) or menu ( Window > Appearance > Toggle Full Screen ). Chandrayya G K I am not sure whether it works on eclipse Luna. This plugin works on eclipse kepler. Blog on this is here Check how to hide the status bar in eclipse . Hide toolbar from Window > Hide

How to know if a NSWindow is fullscreen in Mac OS X Lion?

北城以北 提交于 2019-11-30 01:16:47
问题 I guess I should check if [NSApplication presentationOptions] contains NSFullScreenModeApplicationPresentationOptions , but how do I achieve that? EDIT: using [NSApplication presentationOptions] doesn't work as in my document-based app there might be some documents in fullscreen and others not. I'm now looking for another solution. I'm wondering why there isn't a property called [NSWindow isFullscreen] or something like that. 回答1: I was just looking for a solution myself and based on Matthieu

Samsung Galaxy S8 full screen mode

巧了我就是萌 提交于 2019-11-29 23:08:23
Latest Samsung's smartphone has interesting feature called full screen (or in marketing terms infinity display ). In this mode app covers also part of display where home/back buttons are. Usual apps don't cover this area, leaving it black. But Samsung's native ones cover this area. Question: how to achieve this effect? I mean what kind of manifest declaration or programmatic call (possibly Samsung's legacy API) should I use? To enable new Samsung Galaxy S8 and LG G6 full screen support add to the AndroidManifest.xml under the <application> element: <meta-data android:name="android.max_aspect"

MPMoviePlayerController breaks/stops after going to fullscreen in iOS6

帅比萌擦擦* 提交于 2019-11-29 23:00:38
I have a MPMoviewPlayerViewController embedded into an UIView object. When I start the player in the embedded mode everything works fine and as expected. If the user then taps onto the fullscreen toggle (or if I change to fullscreen programmatically using setFullscreen:animated ) the player goes fullscreen, the movie plays for another second and after that the screen goes black with only a " Loading... " message. This behavior only appears using iOS 6 (also iPad 6.0 Simulator), on devices running iOS 5 everything works as intended. The movie source is a local file from the app bundle. Upon

MPMoviePlayerController fullscreen quirk in iPad

流过昼夜 提交于 2019-11-29 21:55:55
I want to show a MPMoviePlayerController in a view controller and let the user toggle full screen with the default controls, like the YouTube app. I'm using the following code in a bare-bones example: - (void)viewDidLoad { [super viewDidLoad]; self.player = [[MPMoviePlayerController alloc] init]; self.player.contentURL = theURL; self.player.view.frame = self.viewForMovie.bounds; self.player.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; [self.viewForMovie addSubview:player.view]; [self.player play]; } This works well until the user makes the video

iOS 'Web App' has different localStorage than Mobile Safari

限于喜欢 提交于 2019-11-29 21:54:51
I have a webapp for iPad with the meta tag: <meta name="apple-mobile-web-app-capable" content="yes"> When I open up the app from the homepage (web-app-capable version) or type in the address in Mobile Safari the contents of localStorage are different. I have confirmed that the addresses are identical by printing location.href. All changes made to localStorage while using Mobile safari are reflected in the web-app-capable version, but changes made in the web-app-capable version are not reflected in the Mobile Safari version. The domains are identical, localStorage should be identical. What in