Questions tagged [screen-resolution]

The number of distinct pixels in each dimension that the screen can display, usually quoted as width × height with the units in pixels.

It is usually quoted as width × height, with the units in pixels. The screen resolution signifies the number of dots (pixels) on the entire screen. For example, a 640-by-480 pixel screen is capable of displaying 640 distinct dots on each of 480 lines, or about 300,000 pixels. This translates into different dpi measurements depending on the size of the screen. For example, a 15-inch VGA monitor (640x480) displays about 50 dots per inch.

1404 questions
14
votes
3 answers

conditional statement for screen resolution?

I would like to use a conditional statement to attach a different stylesheet for: if the clients resolution is <= 1024*768 I'm pretty sure this is possible, but have never seen the code for it before? ps. I am not looking for a javascript solution
Haroldo
  • 36,607
  • 46
  • 127
  • 169
13
votes
2 answers

Detect screen width for multiple monitors

My website is optimized (with fixed width) for 1024x768 layout. I plan to add vertical banners on either side of the page for people having resolution width 1280 or higher. Using screen.width, I can easily do this. But I face a problem when trying…
Pratik Thakkar
  • 395
  • 2
  • 4
  • 16
13
votes
5 answers

Target only high-resolution (pixels) devices on Android Market

I want to publish an application that specifically runs only on 800x480 or higher screens. I don't want users with 480x320, 320x240 etc devices to get it from Android Market. How do I configure it? Market Filters seems to have the answer but I still…
Randy Sugianto 'Yuku'
  • 71,383
  • 57
  • 178
  • 228
13
votes
1 answer

JavaFX screen resolution scaling

I have been searching for a method to do this, but I only found This question without answers. I am developing in a 1366x768 laptop, I use JavaFX to create a GUI (I am sorry, but I can't post the code, it's basically an AnchorPane containing a…
Mayuso
  • 1,291
  • 4
  • 19
  • 41
13
votes
2 answers

Media queries to cover all major pc and laptops aspect ratio

I want to build some media queries to cover most of the aspect ratio out there for pc/laptops. My first attempt was this: @media screen and (min-device-aspect-ratio: 4/3){ header::after{ content: '4/3'; } } @media screen and…
13
votes
5 answers

Android supporting all tablets - categorize drawables and layouts

I have seen many thread discussing this problem in stackoverflow (like this, this and this), and I have read the documentation about supporting multiple screens, and designs. But I am still not clear about the folder structure for drawables and…
Krishnabhadra
  • 34,169
  • 30
  • 118
  • 167
12
votes
7 answers

How to write different HTML for different screen sizes

I understood how I change CSS via media queries (such as media="screen and (max-width:640px)") but let's say I want to write (just for example)
[if screen resolution is lower then 960 px]
some new text only for lower resolution …
Alon
  • 7,618
  • 18
  • 61
  • 99
12
votes
2 answers

C# WPF fit application depending on monitor size after maximize/minimize after moving between monitors

I have two monitors: Screen 1: which is secondary screen with 1920x1080 Screen 2: which is primary screen with 1600x900 Screen 1 is larger then Screen 2. When I open my application in Screen 2, and then move it from screen 2 to screen 1 and try to…
Zakk
  • 758
  • 3
  • 11
  • 20
12
votes
6 answers

Android: Showing wrong screen resolution

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; …
Shijilal
  • 2,175
  • 10
  • 32
  • 55
11
votes
2 answers

Corona SDK Cross Device Screen Resolution

This is going to be one of those awkward questions looking for an answer that probably doesn't exist, but here goes. I've been developing some simple games using Corona and whilst the functionality seems to work pretty well across most of the…
Alexander Holsgrove
  • 1,795
  • 3
  • 25
  • 54
11
votes
2 answers

Get the real screen resolution on Ice Cream Sandwich

Devices with Ice Cream Sandwich can use on-screen soft keys, and this means that some of the screen estate is taken by these keys. I need to get the real screen resolution, and not the resolution minus the space taken up by the soft keys. I've tried…
Michell Bak
  • 13,182
  • 11
  • 64
  • 121
11
votes
4 answers

In Unity, how to detect if window is being resized and if window has stopped resizing

I wanted my UI to not resize when user is still resizing the game (holding click in the window border) and only when the user has released the mouse the resize event will trigger. I have tried to achieve it on Unity but so far I only able to detect…
11
votes
6 answers

React native check if tablet or screen in inches

I've established a different render logic for tablets and mobile devices. I was wondering if there is a way to get the screen size in inches or maybe even any module to automatically detect if the device is a tablet or not. The reason I am not using…
Return-1
  • 2,329
  • 3
  • 21
  • 56
11
votes
1 answer

SetProcessDPIAware seems not to work under windows 10

I am trying to get the real screen resolution (in pixels) in a windows C++ app. When the windows dpi setting is changed, I get the virtual (adjusted) resolution instead of the real one. I have tried using SetProcessDPIAware, SetProcessDpiAwareness…
Alphonsos_Pangas
  • 514
  • 1
  • 3
  • 13
11
votes
2 answers

How to disable iPhone 6 native resolution?

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…
Dunbar
  • 401
  • 5
  • 9