I have created an HTML5 'app' with a width and height 480 x 800 to be used as an android app.
Plan is that this can be scaled down/up for other Android devices to fit screen.
The app runs fine, but it is not being scaled to my device screen size. I have to scroll up/down and left/right on the every screen.
I have tried nearly every variation of the meta viewport tag with no succes (in the index.html file).
Any ideas? Have spent two days frying brain on this one. Have also tried appmobi & phonegap.
Cheers
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
Related
Is there an option to scale the display, so everything will look bigger (for people who have difficulties reading the small fonts that is everywhere).
I'm not looking for a local solution as changing the browser font size, but something like the same effect as when you lower the screen resolution on your PC.
Thanks.
There are a few tools that let you change the DPI, for example: https://market.android.com/details?id=com.innodroid.dpichanger
You need root to use it.
thanks,
the app you mentioned crushed, but this one does work. if I increase the DPI too much then it switches to another launcher and the soft buttons are tiny or gone.
original DPI=160
max DPI working well with the original launcher=177
min DPI = 120 (also works well)
so I only succeded to increase the DPI by 10% and still keep the system work well, not very effective.
https://market.android.com/details?...wsMSwyLDEsImNvbS5iaXJkYXBpLmFuZHJvaWQuZHBpIl0.
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
I use 120 dpi with Go Launcher to fix the view of the home screen. Works very well in expanding the usage of most apps. Though some sharpness is loss in the text...even though it was never that sharp to begin with in 160 dpi.
Hello All,
I am Charan Kumar, a beginner in android. I have created an UI design XML file. The design I have created shows all the components on a 3.7 inch display screen phone(default Nexus Phone in eclipse emulator). But, When I try on 3.2 inch and 3.4 inch screen phone, the components which are at lower part of UI are not getting displayed. The components are not getting fitted to the screen.
I am using "dp" to mention height, and "fill_parent" for width.
Please help me how to design an UI that displays all components on all phones, the design must be compatible for all mobile screens.
U cannot use dp or any other hard coded methods if u want the UI to work for all screen sizes.
I would suggest 2 options.
1. Use fill_parent n wrap_content only as view sizes and use weight attribute and margin and padding values to set the positions and sizes.
2. Else if u want to set the sizes preciously, set the sizes dynamically after reading the screen size from windowManager.
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
What is the exact screen size I should use while developing apps for Prime ?
Declared screen resolution isn't correct, because I used that and tested and its not showing in full size as it should, so it must be some other screen size.
Don't know, but would it work to take a screen shot and mail yourself the photo?
I had the same trouble with my hubs screens. Beautiful Photoshop stuff, but when they display at the original (advertised) size, they have a few pixels missing at either end.
I've used 1280x800px, but width of 1280 won't go to their ends and height seems to be shorter, because I see font degradation and rest of the objects, but its best visible on fonts (at least in my case.)
I'll have to explore tomorrow with different sizes... although I don't like these testing where I have to do whoknows how much of them to find exact dimensions.
The system bar take 48 pixels. So the actual resolution that's is available is 1280x752
If you going to create a app. I why don't look at android developer section for guide and info.. Just a suggestion...
http://developer.android.com/guide/practices/screens_support.html
http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts
Asus Prime & Tapatalk
Both of your links don't mention 752px, there is 720.
Anyways I don't use Android SDK or any other of their info. I use Adobe Flash and do it all from there. Very easy and no need for lots of reading
Hello, I'm a beginner for android development, and I am currently making a game for Android, but I've been stuck on this problem for a few hours.
Since android's resources (drawable, mipmap) are based on DPI, if I want to fill a screen with a specific resolution, how would I go about adjusting the size for multiple displays?
For example, I have a 1920x1080 screen, so I make a background that is 1920x1080. If I try the app a 1280x720 screen, the image will be clipped and some of it will not be visible on the screen. If I try the app on a 2560x1440 screen, the image will not cover the entire screen.
How would I make my app work with phones with different displays? Or have I misunderstood the mdpi,hdpi,xhdpi,..etc. and they in fact actually deal with resolution?
I am using SurfaceView and BitmapFactory to load the resources and load it onto the screen, if that helps anything.
Many thanks.
(If I am posting on the wrong subforum, please direct me to the proper one, Android Software Development seemed to be full of guide and not help, so I decided to post here)
Hi guys,
I am regularly seeing Android boxes / TVs / sticks that claim to support 4K, but their framebuffer resolution is only FullHD, meaning the top level layout getWidth() and getHeight() returns 1920 x 1080.
4K video displayed through VideoView is decoded and displayed in true 4K, so the devices support 4K in at least some ways.
Does anybody know whether it is possible to display images, text and graphics in 4K as well on such devices? Is there any official documentation regarding screen resolution on Android?
Thank you for any suggestions
Milan
mimac said:
Hi guys,
I am regularly seeing Android boxes / TVs / sticks that claim to support 4K, but their framebuffer resolution is only FullHD, meaning the top level layout getWidth() and getHeight() returns 1920 x 1080.
4K video displayed through VideoView is decoded and displayed in true 4K, so the devices support 4K in at least some ways.
Does anybody know whether it is possible to display images, text and graphics in 4K as well on such devices? Is there any official documentation regarding screen resolution on Android?
Thank you for any suggestions
Milan
Click to expand...
Click to collapse
Hello and good morning, @mimac
Welcome to XDA. I hope you'll always find and get the support you require.
However, prior to your next posting please read the guidances that are stuck on top of every forum like
[ATTN] : Read before posting - Any questions posted here will be MOVED or CLOSED
Please read the below before posting. Any questions not development related will be moved or closed. Forum Searching | Posting | The Basics: (Make sure you've read them before starting a new thread) Forum Rules Forum Search Google Forum...
forum.xda-developers.com
and the others. I've moved the thread to Android Q&A.
Thanks for your cooperation!
Regards
Oswald Boelcke
Senior Moderator