screen-resolution

How to disable iPhone 6 native resolution?

六月ゝ 毕业季﹏ 提交于 2019-12-17 12:04:31
问题 I have several games made with Cocos2d-iphone. All of them are old projects created with Xcode 4 or 5. All games scale fine on the new iPhone 6 and 6 Plus except one that seems to avoid the scaling mode and is running on native iPhone 6/6 Plus resolution. The project does not contain Launch images with the resolutions that seem to disable the scaling mode as explained here Is there anything else that unlocks the native resolutions? I want the game to run in scaling mode for now until the HD

How do I set browser width and height in Selenium WebDriver?

十年热恋 提交于 2019-12-17 10:47:54
问题 I'm using Selenium WebDriver for Python. I want instantiate the browser with a specific width and height. So far the closest I can get is: driver = webdriver.Firefox() driver.set_window_size(1080,800) Which works, but sets the browser size after it is created, and I want it set at instantiation. I'm guessing there is an approach along the lines of: profile = webdriver.FirefoxProfile(); profile.set_preference(foo, 1080) driver = webdriver.Firefox(profile) But I don't know what foo would be,

How to support all the different resolutions of android products

China☆狼群 提交于 2019-12-17 10:46:22
问题 All the different resolutions of the different Android products are driving me nuts. My first android app that I wrote was designed so it supported the three commonly used resolutions: 240x320 (LDPI), 320x480 (MDPI) and 480x800 (HDPI). The 480x854 didn't do any harm to the layout because it has the same width as 480x800. I've also bought the following devices to test my android apps on: Samsung Galaxy Europe (LDPI) HTC Desire Z (HDPI) Luckily my girlfriend has a HTC Wildfire S (MDPI) so I've

Android: Showing wrong screen resolution

你。 提交于 2019-12-17 06:50:13
问题 I was trying to get the screen resolution of android phones,using this code DisplayMetrics dm = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(dm); str_ScreenSize = dm.widthPixels + " x " + dm.heightPixels; str_ScreenSize = "dd" + " x " + dm.heightPixels; When i tried this code in my Galaxy S phone i got the screen resolution as 320x533 px, but in reality the Galaxy S got a screen resolution of 480x800 px. So what's wrong with the code?? How can i get the actual

How to list available video modes using C#?

混江龙づ霸主 提交于 2019-12-17 06:14:51
问题 I've found nice examples using C++ (http://www.codeproject.com/KB/tips/resswitch.aspx), but not in C#. Can someone help, please? Edit: The exact function that list the video modes is: BOOL CVideoModes::GetAvailableVideoModes(CAvailableVideoModes& modes) { modes.SetSize(0, 5); int i=0; DEVMODE dm; while (EnumDisplaySettings(NULL, i, &dm)) { CVideoMode thismode(dm.dmBitsPerPel, dm.dmPelsWidth, dm.dmPelsHeight, dm.dmDisplayFrequency); modes.SetAtGrow(i, thismode); ++i; } modes.FreeExtra();

Is there a list of screen resolutions for all Android based phones and tablets? [closed]

倖福魔咒の 提交于 2019-12-17 02:20:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . If not, is there a list of screen resolutions for the most popular Android phones and tablets. 回答1: (out of date) Spreadsheet of device metrics. SEE ALSO: Device Metrics - Material Design. Screen Sizes. --------------------------- ----- ------------ --------------- ------- ----------- ---------------- --- --------

CSS small screen issue

允我心安 提交于 2019-12-14 04:22:29
问题 My query was about my wordpress site womensfertility n hormones. c o m if I view the site on a smaller screen with resolution like 1024 x 768 the site would look like this: but if I view it on my normal computer screen with big resolution it looks good, then if I scale it to iphone and ipad it would scale normal as it is responsive. I'm using optimizepress. I've just added a code to make the site boxed layout and to have a background image instead of full width. my code that I've added was:

iPhone Screen Resolution. 160 vs 163 vs. the future

天涯浪子 提交于 2019-12-14 04:02:26
问题 I'm trying to make an app that displays something in real-world units. It's not a ruler app, but it wants that kind of precision. It already looks like the iPhone and iPod touch have different screen resolutions (160 & 163 respectively) I've found this Calculating pixel size on an iPhone and this iPhone screen resolution changes in future hardware and this http://forums.macrumors.com/showthread.php?t=350612 From my reading it sounds like I can treat the 320 * 480 screen space as 2 * 3.5

What exactly is the available file suffixes for Cocos2D, used for multi resolution support?

时间秒杀一切 提交于 2019-12-13 17:16:29
问题 I've been searching around for a while, but it's been hard to find a definit list of available suffixes which you can use for multi resolution support, if there is any? That is, loading images in a dimension depending on what device you're on. Especially for the interface. I know that the "-hd" suffix exists for ipad retina display support, but besides that it would also be nice if there is any suffix for regular iPad resolution as well as an iPhone suffix when the game is loaded on an iPhone

Layout Folder issue in android

帅比萌擦擦* 提交于 2019-12-13 07:55:00
问题 In my app there are three layout folder. 1)layout(for 480x800 resolution with **hdpi**) 2)layout-large(for 1024x600 resolution with **mdpi**) 3)layout-xlarge(for 1280x800 resolution with **mdpi**) but i have new tablet for i-ball with resolution (1024x600 -> **hdpi**). i don't know how to create design for this tablet. this i-ball device is take layout file from layout layout(for 480x800 resolution with hdpi ) folder. but its not looking good design compare with other resolution devices.