Support multi screen - General Questions and Answers

Guys I'm getting mad here
I have problem with my app supporting multiple screen sizes
1- Can I create layout folder for every screen size (by inch like 2.7in, 3.7in, 4in, .....)
2- If 1 = no , How can I make one layout folder for 3.2 and 4.7 in screen sizes it's impossible
3- Why is note devices use normal layout files (I cannot make the normal layout file fit for note and 4in phones too it's impossible )
4- What's the best tutorial for supporting multiple screen sizes??
5- Any advice how to avoid problems with screen sizes?
6- I'm using just the normal drawable folder and it seems to be working good (I mean the icons) on all screen sizes, is this good?
please help me

This should answer all of your questions. http://developer.android.com/guide/practices/screens_support.html

Related

Wallpaper help

So Who else is having issues with wallpapers? After about 5 tries my wallpaper randomly decided to semi-work but the ends are still cropped but it's usable.
Can't find too much information on what the default 4.4 wallpaper crop thing does or how to use it (got mine from random luck).
For example the image i'm trying to use is 1920x1080
images6.alphacoders.com/419/419916.jpg
Managed to get it to center but it only shows this (from full left to right on my 3 pages/homescreens)
postimg.org/image/nl9r0o42l
So basically -
1. Anyway to resize or anything to show the full image on my nexus? (Have 3 homescreens/windows). I tried image2wallpaper but it only showed the same as above
2. How the hell does 4.4 kitkat's wallpaper settings work? Sometimes it would choose full left (So only cloud was shown), othertimes full right(So only sephiroth) and from random luck it centered with the edges cut like i said above.
Or is this simply just the limitation because of the devices size
skules said:
So Who else is having issues with wallpapers? After about 5 tries my wallpaper randomly decided to semi-work but the ends are still cropped but it's usable.
Can't find too much information on what the default 4.4 wallpaper crop thing does or how to use it (got mine from random luck).
For example the image i'm trying to use is 1920x1080
images6.alphacoders.com/419/419916.jpg
Managed to get it to center but it only shows this (from full left to right on my 3 pages/homescreens)
postimg.org/image/nl9r0o42l
So basically -
1. Anyway to resize or anything to show the full image on my nexus? (Have 3 homescreens/windows). I tried image2wallpaper but it only showed the same as above
2. How the hell does 4.4 kitkat's wallpaper settings work? Sometimes it would choose full left (So only cloud was shown), othertimes full right(So only sephiroth) and from random luck it centered with the edges cut like i said above.
Or is this simply just the limitation because of the devices size
Click to expand...
Click to collapse
Some images, based on their file type and size and how you crop it, will try and push itself behind your Google Now home page rather than only behind your custom home screens. The best way to probably do this and resize your image to the same size as the default wallpapers included with KitKat to give you a better understanding of where they need to be.
Test cropping - apply a default wallpaper and get used to the crop pattern and then try that with your re sized image to apply to your custom lock screens.
Just a thought.
Seems like what i'm looking for is the "proper" wallpaper size rather than the resolution
So I noticed that with the Nexus 5 image that's on the box (like this one http://img11.hostingpics.net/pics/787373KitKatWallpaper03copie.jpg), except I don't think that's the actual one, if I zoom out from Google Photos, I see the red bar at the top. Android lets me set it as my wallpaper, but when I reboot, the view is zoomed in again. It seems Android resizes wallpapers on its own.
Proper wallpaper size is 2160 x 1920.
apply wallpaper collection for samsung galaxy s4

[Q] Which environment allows to use small fonts, and ignores DPI ?

My old phone has a 4.3" screen, 544x960; the new one is 4.75, 1080x1920. The new phone is about 15% larger, and has 4 times more pixels; but, bue I read emails, or navigate in menus (like parameters), the new phones shows 10% less text and entries (up to 20% less). Both phones have the font set to small. I have compared Android system menus (like params) and setting menu in apps (same app on both). And in every single test case, the large screen shows less than the small one.
Stupid question: is it possible to ask Android to ignore DPI, and use really small fonts so that I don't have just 4 or 5 menu entries per screen, but rather 10-15 ?
Serious questions: which environment would allow me to custom graphical settings ? which ROM ?
I use ADW; it's a good start, but it's just a Launcher. It does not help for system menus, and menus in apps.
https://play.google.com/store/apps/details?id=com.theSushi.dpichanger
Changed from 480, to 390 ... and I am wonderfully happy !!!
The app is tricky to use; think 5 times before you "go". Read carefully options in the menu.
After entering a value, before clicking go, you need to select an entry in the menu on the left of go; the menu is hardly visible; bad contrast; i will complain to author.

Edge + DPI settings = problem

This is more a request/plea for help to devs than a question, but basically, I've been playing around with adjusting the DPI (using Xposed + App Settings) of my Edge for 'bout 2 days straight now and because of the way Edge Panels/Cocktailbar service interact with the rest of the UI, it's been a rather rough 2 days. To summarize my findings:
1) Changing the DPI of Android System also adjusts the width of the area allocated to the Edge. *
2) Changing the DPI of cocktailbarservice ONLY changes how various panels are stacked together. *
3) Changing the DPI of individual panels ONLY changes the total size of the panel UI but NOT the area it's allocated. *
*These are all rather confusing so the screenshots below should clear things up.
I'll be working with 6 different things here:
a) Android System
b) Cocktailbar service (com.samsung.android.app.cocktailbarservice)
c) EdgeBoard panel (com.yotsumo.edgeboard)
d) Briefing panel (com.samsung.android.app.catchme)
e) RAM Usage Manager panel (com.samsung.android.app.ramusagemanager)
f) Quick tools panel (com.samsung.android.cocktailbar.quicktool
To simplify things, I'll be changing between only two DPIs: 640 (stock) and 320. Each set of screenshots will be labeled with the letters a-f. Uppercase means it's set at 640. Lowercase means it's set at 320. Also, remember that if you want to reproduce any of these for yourself, that "Apply res to widgets" must be checked for all DPI-adjusted Edge panels.
Set 1 - ABcdef
http://imgur.com/a/BmBTw
Set 2 - AbCDEF
http://imgur.com/a/kh8Y6 (Imgur REALLY doesn't like two of the screenshots here. Just ignore them. You get the point.)
Set 3 - aBCDEF
http://imgur.com/a/74hLH
You can do a few dozen more combinations (well 61), but I the pattern should be clear now. Setting it to abcdef (all 320) does result in an non-glitchy, usable, and thinner panel, but even then, only the EdgeBoard panel (of what I've downloaded) properly adjusts to the full length. The others just leave a blank space under them.
Now what I personally think (and hopefully some of you here will agree with me) would be optimal is if we could adjust the size of the allocated panel area as well as the size of the panel itself, independent of the Android System's DPI (320 works great for me on just about everything, but the Edge panel at this point is WAY too narrow). Could this be implemented somehow either through some hacking away at internals or perhaps an elegant Xposed Module? See link for what my screen looks like currently: http://imgur.com/XpvjkMD
thanks for this post i was looking for this,i am thinking of picking up a note edge next week.i am currently using a note 3 with many modifications like darklord rom 5.0.1 ,360dpi(stock 480),v4a ,system ui mods,about 25 xposed modules etc.
so what about changing the per app dpi like just changing system ui or whatsapp messenger and others?? does it affect the side screen(edge)???i will use nova launcher and definitely not tw launcher.
i saw v4a on screenshots.so its working fine in normal mode with everything convoler??
i am curious because i will be selling my note 3 to go for the edge, so is it worth getting edge and can do all customizations or i must stick with note 4?
thanks.

Android layout positioning different in UI designer than on device

This is the first time I am trying: background image covers entire screen. (nice layout delivered to me)
I am placing invisible buttons over the background image to add functionality.
When in design view or layout validator things are in position I want.
However when I run the emulator or deploy to device the buttons shift further down than designed. It seems buttons/items further down the page are shifted more than those at the top (maybe a clue). Seems like a scaling issue but since new to me need a hint. I have the layout designer set to the proper device. I have starting orientation as portrait.
I tried RelativeLayout and ConstraintLayout (same behavior)
I tried placing background image as ImageView with match-parent AND also as android:background on the layout element. (same behavior)
I am fragments and using the following attributes for all buttons (relative to the layout element/the container)
app:layout_constraintStart_toStartOf="@+id/main_fragment"
app:layout_constraintTop_toTopOf="@+id/main_fragment" />
The source file for the background image is not 1024x600 so guess one can say it is being stretched to fit. (not sure if this matters)
Regardless: I need to understand why what I design is not what I get?????
All I want is a fixed screen where nothing ever moves or resizes. I have specific target device 1024x600 mdpi tablet. This seems to be the same as the generic 7" WSVGA tablet that comes in android studio. I tried that and a custom 1024x600 device. (same behavior)
The table specs are: 1024x600 pixels 160dpi (mdpi)
What am I doing wrong? Where is there a tutorial or other help related to this?
THANK YOU!

How can you make an app believe, that a tablet is a smartphone (with root)

Hello,
I am visually impaired and I want to use a tablet as a phone, because everything looks bigger on a big screen.
But some apps look different on a tablet than on a smartphone.
They show more content on one screen if you use a tablet than if you use a smartphone.
If you then set large fonts and an enlarged display, elements overlap in the display.
Is it possible to use a tablet as a phone and make the app believe, that it is a smartphone when it is a tablet?
My smartphone is rootet and I have already tried some things.
I have changed ro.build.characteristics=tablet to "phone" (build.prop)
But that did not help.
Andreas
Change DPI. Lower means bigger. You can adjust that in developer settings, in the "smallest width". Play with that number until you find the good value. Keep in mind, every restart will reset that value to default.
Note that the Android's window size and the device's screen size are not the same. . For example, the area within the window that is used by an app can change if the window becomes too big to fit on the screen.
Read here:
Android: How to use "adb shell wm" to simulate other devices
So I bought a Nexus 10 for development and was super excited by the prospect of being able to simulate other devices using the "adb shell wm" command, with its size, density, and overscan subcomman...
stackoverflow.com
BTW:
Smartphones usually have a screen measuring between 3.5 – 4.3 inches. The screens of tablets measure between 7 – 10.5 inches, they look like a large smartphone but with additional capabilities
xXx yYy said:
Smartphones usually have a screen measuring between 3.5 – 4.3 inches. The screens of tablets measure between 7 – 10.5 inches, they look like a large smartphone but with additional capabilities
Click to expand...
Click to collapse
That is right. Tablets look like a large smartphone. The screen of my tablet has three times the space of the screen of my smartphone. This could mean, that everything is three times as big as on my smartphone. But that is unfortunately not the case.
If you then set large fonts and an enlarged display, elements overlap on the display.
I would like to have a tablet, that behaves identical to a smartphone and everything on the screen looks exactly like on the smartphone, only three times as big.
The tablet knows the physical size of the screen. Otherwise it would not know the ppi-Value. Does anybody know in which file this information is?
Maybe the tablet knows the physical size of its screen ( screen size ), but that's absolutely not of any interest in your case: it's Android's window size ( viewpoint - resolution ) what matters.
You have to find the suitable combo of PPI related to resoulution ( window size ). Both values
wm size
wm density
can get set in Android's system file
/data/data/com.android.providers.settings/databases/settings.db
what is a SQL database

Categories

Resources