screen-size

Android layout folders for different screen sizes

不想你离开。 提交于 2019-12-12 13:13:12
问题 I have an app that I need to ensure different devices are pulling from different layout folders. I need a nexus 5 (1920 x 1080) to pull from a different folder than a Note 4 (2560 x 1440). Currently, no matter what combination of folder names, they both pull from the same folder. I have tried: layout-xxhdpi & layout-xxxhdpi (they both pull from xxhdpi) layout-sw320dp & layout-xxhdpi (they both pull from layout-sw320dp layout-large & layout-xlarge (they both pull from layout-large) What would

Dynamic Website Width [closed]

∥☆過路亽.° 提交于 2019-12-12 04:56:01
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . These days people are using various screen sizes to view websites. I need to figure out how to set up a dynamic website width which can automatically change with the screen size. I created a website with 1200px wide. The website and the content is too big for my laptop screen. But

android animation in different screen sizes

空扰寡人 提交于 2019-12-12 03:54:49
问题 I am animating a layout which contains a button and a spinner using objectAnimator.In my mobile the layout moves to top.But when I tried to run the app in another mobile with larger screens size,it moved to half the screen.How can I get the x and y axis of screen .The code is below. MainActivity.java: ObjectAnimator translate=ObjectAnimator.ofFloat(relativeLayout1,"translationY",0,-174); translate.setDuration(1000); translate.start(); 回答1: First, access to the screen dpi,then target yoffset =

App not compatible with device on Google Play Store

你说的曾经没有我的故事 提交于 2019-12-12 03:19:06
问题 My app is only designed for handsets, not tablets. However, with the following manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.xxx.app" > <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.RECORD

Android Layout Design for normal screen sizes

房东的猫 提交于 2019-12-12 01:54:19
问题 I am a hobbiest app developer and I feel I have a good grasp on android basics but the main thing that I struggle at is app design. I understand how to develop for different screen sizes and densities. But the main thing I struggle at is each of the normal and other sizes cover such a range of sizes within their respective categories. I have been searching and searching and not been bale to find a solution. The main issue I am having is when designing using eclipse, i make a design using

How to Determine and Set Screen Size at run time using action script?

时光怂恿深爱的人放手 提交于 2019-12-12 01:46:41
问题 Hey so i am developing an android application using action script(the adobe air one) since the screen size of my .swf application is appox 840X480... Can i detect the screen size of the android device running application at runtime and set the screen size accordingly?? if so How?? P.S - I'm still rookie at Action-script Thank You 回答1: Basically, to make your app liquid (or responsive). Follow the following steps: Set the stage align and scale modes: stage.scaleMode = StageScaleMode.NO_SCALE;

Testing different screen resolutions in Universal (iPad,iPhone,iPod) app development

泄露秘密 提交于 2019-12-11 14:36:52
问题 I notice when submitting a Universal app to the app store, there are various screen resolutions to support. I think iPhone/iPod: 320x460, 320x480, 640x960 and iPad 768x1024. When I specify Universal app development in Xcode, the simulator has a resolution of 320x480. To view 768x1024 screen resolution, I can change the target setting to iPad, but how to test 320x460 and 640x960 resolutions? My default solution is to target iPad, and manually hack my code, e.g.: SCREEN_WIDTH=640, SCREEN_HEIGHT

Screen sizes and precise element placement on Android

耗尽温柔 提交于 2019-12-11 12:15:22
问题 I have a problem with supporting different screen sizes. My application has different drawables for mdpi (320x480), hdpi (480x800) or ldpi (240x432). I also have different layout for small, normal-notlong, normal-long. Every size scaling or placement features are done in dp. However my problem is that I need to precisely place an element on the screen so it will perfectly fit to the background. One example here is an image that I download and show inside a frame that is part of the background

How to adjust an application (JFrame) with every kind of screens?

痞子三分冷 提交于 2019-12-11 10:39:12
问题 i have been working on a Swing application that has a JFrame as principal Frame and it contains a lot of JInternalFrames inside of it , and when i installed it in every computer in the company, it seems that some computers screen size is lower and more tight then the screen in wish i had developed my application, and that is not useful, so i am asking if i can adjust my application (Frames) to every kind of screen size, i am using Swing API. Thank you. 回答1: You can check the size of the

iphone5 compatibility tab bar coming 88 points above bottom line of screen

安稳与你 提交于 2019-12-11 01:54:13
问题 I have added iPhone 5 compatibility by adding the default-568h@2x.png However, the tab bar in my application does not come in the bottom as should be expected. This tab bar is added via tabbarController in mainWindow.xib. NOTE: the bottom black part is clickable, but my view does not stretch itself to fit the screen. I have tried the following already: 1) [window setFrame:[[UIScreen mainScreen] bounds]]; 2) setting freeform/retina 4 inch display in xib 3) setting full screen at launch for