The screen resolution of an Android device
Questions tagged [android-resolution]
100 questions
0
votes
1 answer
Set text size with dimens - Android studio
I want to change text size by screen resolution to phones and i used with dimens like this:
I set by Screen Height and its works fine with phone like naxus 5 or pixel 3XL.
My question is if this is how I should define? What did I do well enough to…

ofek gani
- 33
- 5
0
votes
1 answer
Android Studio screen settings
Hi guys i'm a beginner on android studio,
I noticed that when I run my app on my phone, the status bar and also the on-screen buttons are visible but on my friend's device there is no status bar or on-screen buttons so it uses the full resolution,…

vasll
- 29
- 4
0
votes
1 answer
Combining screen height with different resolution layout files?
I set up my Android application to support different screen resolutions (ldpi, mdpi, hdpi, xhdpi, ...) and that seems to be working as it should. Different screen heights on the other hand are not scaling correctly: I optimized my design to fit on…

aignerbas
- 45
- 7
0
votes
2 answers
Setting a font size based on device width and height
In my application i am displaying a CardView which has textview (account title). The card view height i am calculating based on device width.
Since i am setting the cardview height based on device width, i want to change the font size of textview…

Ashok Reddy Narra
- 577
- 10
- 27
0
votes
2 answers
Fonts goes bigger in high resolution device
In my App, I set font sizes and run my Nexus 4. Everything is ok. But in some phones, Font size is bigger than i set. For example, in Samsung A5 2016, Font sized is 3 times bigger than Nexus 4.
Nexus 4 screen: 768 x 1280 pixels, 5:3 ratio (~318 ppi…

Fcoder
- 9,066
- 17
- 63
- 100
0
votes
2 answers
How to address QVGA (320x240) devices (HTC Wildfire, SE x10 mini, Motorola Flipout) in the xml files of Android?
I found introducing a directory "values-notlong-ldpi" did not work out for me
Solved it: using -notlong-ldpi DID work. The mistake was somewhere else (the child overwrote the style info)
However, if u find a better way to address those devices, feel…

OneWorld
- 17,512
- 21
- 86
- 136
0
votes
1 answer
If I have an image 50dp wide/tall in xhdpi, what size do I make for mdpi?
I am working with a graphic designer at the moment who is trying to verify what sizes images I am currently using in my app so he can create new images in the right size for all resolution modes (designing the image at the smallest size and then…
0
votes
3 answers
How can I get the default size (in pixels) of a photo which will be captured through Android camera, before capturing it?
If it is determined by the resolution of the Android device's screen, is there a way to programatically get the value of that resolution?

Solace
- 8,612
- 22
- 95
- 183
0
votes
2 answers
What is the best way to design Resources in Android
There is a formula written in Android documentation
px = dp * (dpi / 160)
I have an Image whose dimensions are 35px X 35px.I have a few questions regarding this.
Should i convert this image into different dp's and put it in resources.
Does…

dev90
- 7,187
- 15
- 80
- 153
0
votes
1 answer
app not getting downloaded in some android device from play store
I have made and app and published in play store. I have also made the layout for sw600dp (tablet 7") , but in some device like LENEVO K3 note and AMAZON OnePlus one its not getting downloaded. Both are 5.5inch device.
Please suggest me what may be…

Rahul
- 395
- 5
- 20
0
votes
2 answers
Android does not recognize screen sizes
I am developing an android application which needs to have different layouts for tablet in landscape and other screen sizes. I've created different layouts in different folders like it is suggested in android tutorial…

Tobiasz Dziubinski
- 53
- 2
- 10
0
votes
0 answers
Android layouts and resize
What is the best way to draw a perfect layout that could adapts in every device without problems of density/resolution ?
I used buckets (layout-120dpi,layout-160dpi,layout-240dpi,layout-320dpi,layout-480dpi,layout-120dpi). It is correct? I will…

ClearCode
- 47
- 4
- 11
0
votes
1 answer
Android: Image button size for multiple screen sizes but with same density
I am writing an Android app to have a matrix of image buttons. I tested it with 2 devices: Galaxy Note 1 (5.3") and Galaxy tab 8.0 (8.00 "). When the source images are put in different density drawable folders, both devices took the images from…
0
votes
0 answers
Android doesn't take values from values-mdpi folder
Why Android isn't taking the values from the folder values-mdpi
for the density and size of the screen below?
PS: There is a dimens.xml inside values-mdpi folder.
The reference (http://developer.android.com/guide/practices/screens_support.html)…

Felipe M
- 449
- 1
- 3
- 14
0
votes
3 answers
How do I make my image appear bigger on screens with higher resolutions?
On my Android app, I have a screen with an image.
The image is 600px wide. On my Galaxy SIII, this looks how I want it to look. But on phones with double the resolution it looks really small.
With shape objects that I define in xml, it's easy to…

CodyBugstein
- 21,984
- 61
- 207
- 363