screen-size Questions

18

Solved

Is there a simple (non-LayoutBuilder) way to size an element relative to screen size (width/height)? For example: how do I set the width of a CardView to be 65% of the screen width. It can't be do...
Galluses asked 30/3, 2017 at 15:26

2

i want to make the p5 canvas fit perfectly to the window size, but whenever I use windowWidth and windowHeight , the canvas seems to be bigger: is there any way to fix this?
Faus asked 18/6, 2021 at 4:23

14

Solved

I've created a new application on Flutter, and I've had problems with the screen sizes when switching between different devices. I created the application using the Pixel 2XL screen size, and becau...
Anuran asked 29/3, 2018 at 10:11

2

Solved

Im trying to implement a GridView as part of a image gallery. I followed the following example from the Android developer portal. The tutorial seems to work for all screen sizes. As you can see be...

6

I have a phone number on a website. It looks good on a laptop, but on a mobile device half of the number jumps to the next line. It doesn't look good. So how can I create a line break that will o...
Jujitsu asked 15/6, 2016 at 13:25

2

Solved

I am getting sick trying to adapt my app to a certain tablet dimensions using flutter. The tablet is a Samsung Galaxy Tab S5e with screen of 2560x1600. When I make flutter return the screen dimen...
Cuirass asked 16/7, 2019 at 7:39

2

Solved

There is a very neat way of converting dp to px without Context, and it goes like this: public static int dpToPx(int dp) { float density = Resources.getSystem().getDisplayMetrics().density; retu...
Lan asked 8/3, 2017 at 14:9

4

Solved

How can I get the screen size programmatically in inches(for example iPhone 4, 3.5 inches). I found a way to do it by detecting the iPhone/iPad model but hard coding is not what I want so I am not...
Ku asked 25/1, 2013 at 7:32

12

Solved

I know, it was discussed already 1000 times, but I can't adjust the text size for different screen sizes. I try to use 'sp' as size units in my custom style: <style name="CustumButtonStyle" par...
Cataplexy asked 26/3, 2012 at 18:52

11

Solved

Is this possible? I want the number of inches, not the number of pixels. I know it is approximately 160 ppi. But not exactly.
Bicarbonate asked 24/11, 2011 at 13:36

4

I'm building a responsive website. There's a separate set of CSS to apply for smartphones. To do this, I use the following code @media all and (min-width: 760px) { .wrap { /*css for large scree...
Bromberg asked 4/1, 2018 at 12:51

5

Solved

I have a view subclass that starts from activity subclass like that: this.setContentView(instanceOfMyView); In that my view subclass I want to make some work with screen size, but all people her...
Attenuation asked 26/7, 2012 at 12:47

6

I'm trying to make a php gallery and thats why I need a good Mask, where the pictures later can be shown. I want the Mask not to be bigger than screen-size. I mean, there must be no scrolling and t...
Kreager asked 27/3, 2016 at 23:8

4

Solved

So I have looked into code for my website that would changes the css and even the html of certain sections of my code when the screen size changes. What I am looking into as a start is when I put m...
Weald asked 6/4, 2017 at 19:56

3

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 ...
Bellicose asked 11/2, 2019 at 21:11

8

Solved

How can I know the visible size of my activity? I'm trying to get the Activity real size, not the height and width from getHeight() and getWidth(), which gives me the screen full size.
Dreyfus asked 17/6, 2010 at 9:58

3

I'm working on an android App,and it's designed with numbers (margins etc) no relative things so I think I'll find many problems with different screen sizes so I thought of making a function which ...
Dermis asked 6/1, 2017 at 3:50

3

Solved

How do you get the screen size in a console application?
Concordia asked 20/5, 2012 at 17:47

2

In my app I am currently using windowManager.getDefaultDisplay() to determine the screen size. With the new Samsung S8 navigation bar, that can be shown and hidden using a 'dot' on the bottom left...
Brelje asked 13/9, 2017 at 16:37

3

Solved

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 ?
Mckibben asked 2/8, 2016 at 8:8

2

Solved

I am getting this error on installing and launching the app, but it does not effect working of my app. But still why am I getting this : Error:screenSize" />
Extravehicular asked 29/1, 2018 at 10:56

2

I am developping a qt5 application on my raspberry pi on raspbian using cross compilation. When I run it, I get a black screen trying display a Pop-up which is a QFrame. I suppose that it cannot be...

3

Solved

I have a slide out nav bar that I would like open by default on screen width of >=1024 and closed by default < 1024. I have a button that toggles it open and closed it. I'm just starting to lear...
Sublunary asked 13/9, 2011 at 16:24

9

I would like to set browser size (mainly width) larger than the screen resolution in Windows XP. It looks like there is no easy way of dragging the browser window and resizing it. It resizes to max...
Exudation asked 4/8, 2011 at 19:8

5

i want to my apps support different screen sizes. i add folders "layout-small and layout-large " in /res directory. but XMLs inside this folders aren't accessible in my activity.so i add all my XML...
Cud asked 8/1, 2013 at 13:9

© 2022 - 2024 — McMap. All rights reserved.