screen-resolution

Android supporting multiple resolution with multiple layout folder

孤街醉人 提交于 2019-12-28 03:04:28
问题 Now I'm supporting multiple resolution with multiple layout folders. I'm using android development studio and I made 3 different folders. layout layout-large-port-1280x720 layout-normal-port-800x480 and I tested on 800x480 and 1280x720. 480x800 worked well, but 1280x720 follow 800x480 folder's dp and UI. I don't know why this thing happens to me and I don't know how to solve the problem. Why it doesn't work and what should I have to do? 回答1: For Different screen size, The following is a list

Libgdx Box2d screen resolution

心不动则不痛 提交于 2019-12-25 13:16:34
问题 I've read a bit about what other people do to deal with different screen resolutions but I'm still very confused. If I have high resolution images and sprites that I want to use, should i work with a screen that like 1080x1920 and than create some methods that scale down for lower resolution screen? Or should I try to compress it down to some middle ground resolution and scale up and down as necessary? Also can anyone give me a good example of how to to the scaling for different resolutions?

Libgdx Box2d screen resolution

两盒软妹~` 提交于 2019-12-25 13:16:08
问题 I've read a bit about what other people do to deal with different screen resolutions but I'm still very confused. If I have high resolution images and sprites that I want to use, should i work with a screen that like 1080x1920 and than create some methods that scale down for lower resolution screen? Or should I try to compress it down to some middle ground resolution and scale up and down as necessary? Also can anyone give me a good example of how to to the scaling for different resolutions?

How to pick proper video dimension based on device resolution

蹲街弑〆低调 提交于 2019-12-25 09:28:23
问题 We've a demo video provided by design team with three different dimension (1024*768), (2048*1536) and (2732, 2048). I'm trying to pick proper video based on current device resolution (supported format). For eg: If it its first generation iPad its resolution is (1024 * 768) it can play video format upto 720p more than that it will not play, likewise iPad3 (Retina) resolution is (2048 * 1536) but it can play video format upto 1080p. Similar iPad pro I guess it will play upto 4k videos. I afraid

Sending screen resolution via a form

半世苍凉 提交于 2019-12-25 05:15:40
问题 I've got it sending the user agent already: <input type='hidden' name='user-agent' value='<?php echo $_SERVER['HTTP_USER_AGENT']; ?>'/><input type="submit" value="Send User Agent" /> I've done my research and there is some code out there that sadly doesn't work. It's other people with problems asking for help themselves. How can I go about sending screen resolutions using php forms? 回答1: you will not get the screen resolution from the server IMHO... you could let the form be rendered and then

Get Windows display zoom value

大憨熊 提交于 2019-12-25 02:53:55
问题 Is there any way to get display zoom value of Windows? The 200% in the picture is exactly what I would like to get. This question is only half the means to achieve another purpose, which is formulated in that question: Excel Shape position disturbed by Windows Display Zoom settings 回答1: You can retrieve this information with a WIN32-API call Option Explicit Private Const LOGPIXELSX As Long = 88 #If VBA7 Then Declare PtrSafe Function GetDeviceCaps Lib "gdi32" (ByVal hdc As LongPtr, ByVal

Scaling form controls according to screen resolution

大城市里の小女人 提交于 2019-12-25 01:45:56
问题 I am trying to write program in vb 2010 that is independent of screen resolution. I am designing the program in 1920*1080 and when I change the resolution to e.g. 800*600 everything blows up and the program won't fit the screen. How can I fix this? I have tried three different approaches: loop through all controls and scale their position and dimensions Friend Sub ResizeControl(ByRef ctl As Control) '---------------------------- GET SCALES ------------------------- Dim DesignScreenWidth As

qHD and 800x480 different layout or drawable or both

给你一囗甜甜゛ 提交于 2019-12-24 14:16:22
问题 I have an application that has a grid with 2 columns and 5 rows. Each cell is an image and a text The application works well on 800x480. (below image) The problem is when I run the emulator for 960x540 the grid look like this (below image) Both use drawable-hdpi and layout-hdpi. Is there any way even an unorthodox to overcome this problem ? The code for the grid is <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@

Detect screen scaling factor in Windows 8.1 store apps

為{幸葍}努か 提交于 2019-12-24 14:15:43
问题 I am building up a string for the source attribute of some of my images in a Windows 8.1 store app. I need to detect the scale factor that the device requires so that I can append the correct .scale-n to the end of the string. These image sources are external to the app so I cannot rely on Windows' automatic scaling by just referencing the image without the scale-n part. So I need to know whether I should append scale-100, scale-140 or scale-180 to the image URL. How can I work this out in c#

Excel Shape position disturbed by Windows Display Zoom settings

夙愿已清 提交于 2019-12-24 13:52:19
问题 I would like to get accurate Shape position in Excel. I noticed that Shape.Top is being disturbed by Windows Display Zoom settings. To reproduce the bug, please right click on a sheet name > View code > and paste the VBA code in the sheet VBA editor. Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) Cancel = True On Error Resume Next ThisWorkbook.ActiveSheet.Shapes("BlueRectangle").Delete Dim sh As Object Set sh = ThisWorkbook.ActiveSheet.Shapes.AddShape