Menu
  • HOME
  • TAGS

How to set starting Activity for different screen size in android manifest

android,android-activity,android-studio,android-manifest,screen-size

Instead of trying to start different activity, use Fragments. And base on different screen size load different fragments with their UI and Business Logic Please check How to adapt ui...

NetLogo nothing named SCREEN-SIZE-X has been defined

netlogo,screen-size

I think screen-size-x and screen-size-y are NetLogo history. You can use max-pxcor, max-pycor and min-pxcor, min-pycor to get the world borders or world-width and world-height to get just the size. To get a random position there are random-xcor and random-ycor. to setup-turtles setxy random-xcor random-ycor end ...

Which screen size qualifiers should I choose?

android,orientation,adt,screen-size,mobile-devices

No, it won't support smallest width qualifiers. (Supported only in Android 3.2+) You'll have to use the "old school" way of supporting multiple devices. On how to do this you can follow this answer: http://stackoverflow.com/a/15113877...

How to make Android layout proportional regardless of screen size and orientation

android,android-layout,orientation,screen-size

By using layout_weight on the three linearLayout and assigning to each one the same value, the screen will bi divided vertically to 3 regardless of the screen size. Also, assign the height to 0dp: android:layout_height="0dp" The complete xml would be: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:baselineAligned="false" android:orientation="vertical" > <LinearLayout...

Display nicely across desktop screen sizes

css,screen-size,em

I would suggest the second option. The way it would work is by setting the element font size in px, and using relative sizes for the containers and divs inside them. For example <body> <div id="container"> <article>This is some text</article> </div> </body> CSS: html{ font-size: 32px; } #container{ font-size: 1.5...

To support 800 by 480 screen size on Android or not?

android,android-layout,screen-size

I myself used the link you provided for research for my internship a couple of months back as well. The images I provided below indicate that a normal hdpi screen takes up 38.3% of all phones. This would be either 480x800, 480x854, or 600x1024 (if I interpreted it correctly). 38%...

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

android,adb,screen-size,nexus-4

Those are input device (i.e. touch screen) coordinates. Touch screen is a separate device which may have a different resolution from the display. To check the resolution of your touch screen do getevent -il /dev/input/event2 | grep ABS_MT_POSITION and look at the max values...

Howto get the pixels per inch ? I get a strange value

android,screen-size

Do like this.... Display display = getWindowManager().getDefaultDisplay(); DisplayMetrics metrics = new DisplayMetrics(); display.getMetrics(metrics); // density interms of dpi Log.i(TAG, "D density :" + metrics.densityDpi); ...

How to support various iphone screen sizes as of 2014?

ios,size,screen,screen-resolution,screen-size

If you want to support native resolution of iPhone 6/Plus, you need to add launch images (prior to iOS 8) or launch screen xib (iOS 8). iPhone 4/4S: 640 x 960 iPhone 5/5S: 640 x 1136 iPhone 6: 750 x 1334 iPhont 6 Plus: 1242 x 2208 That means you...

Android Layout Design for normal screen sizes

android,resize,relativelayout,dpi,screen-size

Try adding another layout for side buttons to group them together, and then center that layout: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/RelativeLayout1" android:layout_width="match_parent" android:layout_height="match_parent" android:columnCount="4" android:orientation="vertical" android:layout_alignParentTop="true" android:layout_alignParentLeft="true" android:layout_alignParentStart="true"> <Button android:id="@+id/Button1" android:layout_width="wrap_content"...

How to create two separate layouts for 10'' and 9.7'' tablets?

android,android-layout,android-studio,screen-size

I need two folders: one for 10'' tablets and another for 9.7'' Those are not meaningful figures, and therefore there is no means of having different resources for them. They are not meaningful, because they do not take aspect ratio into account. Not all Android devices have the same...

Xcode 6 Image not Visible on larger screens

image,xcode6,screen-size

Welcome to StackOverflow, The first thing you need to is enable size class options in file inspector in xcode 6 storyboard. (Xcode 6 has changed a way lot from Xcode 5). (Check Use Size classes here) The way it is setting constraints has also changed a way better. Have a...

Android App is not compatible with Samsung galaxy S4 mini

android,screen-resolution,screen-size,multiscreen

540 x 960 devices access drawable-hdpi values-hdpi folders. please update your hdpi folder and check. or u shud create layout res/layout-w540dp-h960dp/layout.xml for specific size device,...

Are density-specific graphics always necessary?

android,image,screen-size

Normally you should provide drawables for at least: mdpi hdpi xhdpi xxhdpi ldpi is pretty much irrelevant nowadays since barely any devices exist that still fall in that category. Normally you also don't need anything above xxhdpi. It is possible to just provide the xxhdpi drawables and Android will scale...

i am trying to get iPhone 6 screen size in simulator but it showing the wrong dimensions

ios,screen-size,xcode6.1,iphone-6,iphone-6-plus

Until you will not add the launch image for iPhone 6 and 6 plus it will not resize your views according to the iPhone 6 and 6 plus but it will return it as of iPhone 5. It is because if your app is build on xcode 5 using the...

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

android,actionscript-3,air,screen-size

Basically, to make your app liquid (or responsive). Follow the following steps: Set the stage align and scale modes: stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; Listen for resize events on the stage: stage.addEventListener(Event.RESIZE, stageResizeHandler); function stageResizeHandler(e:Event):void { stage.stageWidth; //how big the width is stage.stageHeight; //how big the height is. //so...

How to use media query with div as screen for mobile preview in desktop website?

html,mobile,media-queries,screen-size

HTML <iframe src="link-to-the-site-you-want-to-demo.html"></iframe> CSS iframe{ /*your phone dimensions here*/ height:640px; width:320px; } ...

Density: Game looks the same on every screen-size

android,dpi,screen-size

Either way, you can use dp (density independent pixels) or px, but measure everything yourself at run-time. Since you're obviously not using the built-in layout classes of Android, you really do have to measure everything yourself. And yes, by that I mean you have to "work with f.E. 1/7*width and...

Optimize app for all devices iOS [closed]

ios,optimization,screen-size

Neither. Use one storyboard (or xib per class) and use auto layout.

Android RatingBar Screen Scaling Issue

android,scaling,screen-size,ratingbar

Following @Xavers comments above, this problem was due to the scaling of the images not being correct. The solution to this is to follow the scale ratios, as presented in the following answer - http://stackoverflow.com/a/11581786/1634369 ldpi | mdpi | tvdpi | hdpi | xhdpi | xxhdpi | xxxhdpi 0.75 |...

Actual baseline android size to design

android,design,screen-size

I ended up selecting mdpi as baseline for design.

Certain text on screen is being pushed around when window is resized/minimized

html,css,text,screen-size

The problematic CSS is this: .weddingcaketext { bottom:220px; right:255px; } Remove or sustitute them by left and top properties, example: .weddingcaketext { left:220px; top:255px; } FIDDLE: https://jsfiddle.net/lmgonzalves/wm6r6rw5/2/...