screen-size

Android app on Google Play Store is not compatible with LG G3 (Density 538, Size 2560x1440)?

邮差的信 提交于 2019-12-05 19:21:19
Android App is not compatible with LG G3 device which has high resolution and density. I have already test following config in manifest, neither support-screens nor compatible-screens nor both does not work. <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:xlargeScreens="true" /> <compatible-screens> <!-- all small size screens --> <screen android:screenDensity="ldpi" android:screenSize="small" /> <screen android:screenDensity="mdpi" android:screenSize="small" /> <screen android:screenDensity="hdpi" android

Make text fit exactly as the screen size

不打扰是莪最后的温柔 提交于 2019-12-05 18:23:06
I have a long text so I've decided to divide it into pages, and I put a so each swipe scrolls to the next page.. The way I did it was: NumberOfPages=text.length()/CharPerPage; //CharPerPage=500; NumberOfPages++; Chapters.add(text.indexOf(" ", CurrentPage*CharPerPage)); CurrentPage++; int tmp=0; for(int i =NumberOfPages;i>0;i--) { tmp =(CurrentPage*CharPerPage); if(tmp>text.length()) { Chapters.add(text.length()); break; } else { Chapters.add(text.indexOf(" ", tmp)); CurrentPage++; } } So I divide the text into pages, and each page has 500 chars... But this isnt good since Android has different

Screen Dimensions in Visual Basic

自作多情 提交于 2019-12-05 05:42:19
How can you access the dimensions of the screen in Visual Basic? I have looked online and it says to use Screen.width and Screen.length, but it doesn't recognize those properties... any tips? In VB you can use Screen.Width and Screen.Height . They're not in VBA but you can use an API call instead. Add these declarations: Public Declare Function GetSystemMetrics Lib "user32.dll" (ByVal index As Long) As Long Public Const SM_CXSCREEN = 0 Public Const SM_CYSCREEN = 1 Then use like so: MsgBox GetSystemMetrics(SM_CXSCREEN) & "x" & GetSystemMetrics(SM_CYSCREEN) 来源: https://stackoverflow.com

iPhone app is running at iPhone 4 size with black bars after update

风格不统一 提交于 2019-12-05 02:34:21
Previously the app supported the iPhone 5s/SE screen and iPhone 6-8 screens (not the plus sizes), this was done using launch images. So on Plus sized devices and iPhone X* devices it would display black bars above and below the app. We then released an update where among other things a launch storyboard was added. All through the development of this update the screen size worked perfectly on every device we had. However after releasing the update on the App Store, for some users, the app now shows at iPhone 4 size (height/width ratio is 1.5). So now affected users on an SE have the black bars,

App size is too big because of too many images

谁说胖子不能爱 提交于 2019-12-05 01:30:57
问题 I'm creating an universal app. For one screen, I'm displaying 6 images (png format) in a grid using this control. Also this screen supports both portrait and landscape orientation. I've created a set of images in different resolutions for all the iDevices and named them using the correct naming convention as follows. name~iphone.png name@2x~iphone.png name~ipad.png name@2x~ipad.png name-568h@2x~iphone.png (iPhone 5) And I had to create another set of these images since I support both

how to handle different screen sizes in react native?

纵然是瞬间 提交于 2019-12-04 21:33:52
问题 I am developing an application on react-native. I have made a UI which works fine on iPhone 6 but not working fine on iPhone 5 or lower versions. How should I fix this ? 回答1: Have you designed the app using fixed widths and heights? You should definitely use the capabilities of flexbox and try to avoid settings fixed sizes as much as possible. The flex property can be used to define how much space a <View /> should use releative to others, and the other properties on that page can be used to

Android Resources Folders by Screen Size

拟墨画扇 提交于 2019-12-04 21:32:04
I've deloped an Android game which supports almost resolutions in the market (240x320, 320x480, 480x800, 480x854, 600x1024). My problem is when I'm trying to support tablets, I don't understand why Android divide the resources in different folders (hdpi, ldpi, mpdi, large-mdpi, ...) when that qualifiers isn't useful! I have several graphics sets (according width) but I'm going crazy, for example, with the tablets 480x800 with density mdpi or ldpi! It's is impossible reach every device. So, do you know any way to divide drawables/bitmaps in folders but only accesible through resolution?? Yes, I

How to detect the android screen size programmatically ( the 4 standard sizes)?

纵饮孤独 提交于 2019-12-04 18:40:42
I know there are 4 standard screen sizes for android : xlarge,large, normal and small How to know the running device which screen size has from these 4 sizes ? int screenSize = getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK; switch(screenSize) { case Configuration.SCREENLAYOUT_SIZE_LARGE: Toast.makeText(this, "Large screen",Toast.LENGTH_LONG).show(); break; case Configuration.SCREENLAYOUT_SIZE_NORMAL: Toast.makeText(this, "Normal screen",Toast.LENGTH_LONG).show(); break; case Configuration.SCREENLAYOUT_SIZE_SMALL: Toast.makeText(this, "Small screen",Toast

Why does my Galaxy Note 3 have the same DP dimensions as a much smaller phone?

纵然是瞬间 提交于 2019-12-04 17:38:59
I have been reading about dp, px, ppi and dpi for awhile now, and I am lost. Why is it that a large phone like the Galaxy Note 3 (with a 5.7 inch display) can have the same dp as a Moto X (with only 4.7 inches )? My calculation for each returns a width=360dp and height=640dp . It seems like many higher density phones fall in this range. Is this true or am I misunderstanding dp ? I am using the following to calculate my values: How to determine the screen width in terms of dp or dip at runtime in Android? Onik Because it's not just a matter of screen size, it is also a matter of screen density.

Adb shell getevent method returns twice the value for X and Y on Nexus 4

懵懂的女人 提交于 2019-12-04 14:53:17
I am currently trying to generate a complex gesture via the sendevent command of adb shell. In order to replay a gesture, I recorded the events via the getevent method of adb. Here is a sample of a simple tap on the bottom right of my Nexus 4 screen. /dev/input/event2: 0003 0039 00000059 /dev/input/event2: 0003 0035 000005ff /dev/input/event2: 0003 0036 000008e6 /dev/input/event2: 0003 003a 0000002d /dev/input/event2: 0000 0000 00000000 /dev/input/event2: 0003 0039 ffffffff /dev/input/event2: 0000 0000 00000000 Converted into decimal values (for the sendevent method), it makes: /dev/input