App logo in actionbar appears larger on tablet vs phone - android

I'm having trouble figuring out why my app logo in the actionbar appears larger on a nexus 7 vs a nexus 5. I'm using the actionbar in the support library. They're both running android 4.2.2
Nexus 5 (good)
Nexus 7 (bad)
Here are the logo image resources.
What can I do to fix?

The problem because of different dimension of the devices.You can fix it by alter your images for two different dpi.xhdpi for nexus 7 under the resolution of 1920 x 1200 pixels rate.xxhdpi for nexus 5 under the resolution of 1080 x 1920 pixels rate.

Just a shot in the dark: Do you have any different layouts or drawables based on the dpi like xhdpi or xxhdpi ? nexus 5 comes under xxhdpi whereas nexus 7 is xhdpi.So if you are setting the resources differently, that could be your issue.

Related

Android: Are there xxxhdpi density devices?

Are there xxxhdpi density devices?
Android devices screen density increases (see https://github.com/paulvi/displayclasses) and there are already devices with density higher than xxhdpi (extra-extra-high) ~480dpi
like Samsung Galaxy S6 577 2560 1440
(But I cannot check if it is really xxxhdpi)
Is it time to prepare 192x192 icons?
(4x times 48x48 dp, see http://developer.android.com/design/style/iconography.html )
See also Android Official Icons for XXHDPI and XXXHDPI
UPDATE: Was asked a year before as Android xxx-hdpi real devices
Also Nexus 6 and Nexus 9 Screen density
Just for reference purpose, now Google maintain a list of devices density and other information at https://design.google.com/devices/ which is mainly targeted for material design guideline.
Are there xxxhdpi density devices?
Afaik Nexus 6 is xxxhdpi device
New phones already use XXXHDPI.
Our test phone Samsung S6 Edge use xxxhdpi drawable resources. Someone already mentioned that Nexus 6 also using this dimension. Thus new phones with good screen should use this dimension.
xxxhdpi density devices Resolutions :
2048x1536
2560x1536
2560x1600
In Nexus 6
For more help :
http://developer.android.com/guide/practices/screens_support.html
Actually, no, even as of 2016, there are still no xxxhdpi device.
The largest resolution on Android device is used by Xperia Z5 Premium (4k on 5.5", or roughly 806ppi), and even on that device, it was only used that humongous screen density for multimedia contents. The UI itself was rendered by halving the effective density by two, so it actually scales down from 4k to full HD on 5.5", or xxhdpi.
Specs for Xperia Z5 Premium : http://www.gsmarena.com/sony_xperia_z5_premium-7536.php
I found 8 corresponding devices here.
My Samsung S22, released in February 25, 2022, has a 600 dpi when resolution is set to its highest (3088 x 1440), and more importantly, it loads xxhdpi resources, which means that we aren't there yet in terms of smartphones with 640 DPI or more screen density, and even if your phone contains 600 dpi like my S22 does, which is just 40 dpi shy off 640, it'll still load the 480 dpi (xxhdpi) resources.
I guess we'll get to 640 dpi in a year or two, I also expect the AOSP to add a xxxxhdpi to the source code very soon just as xxxhdpi was added in 2013, long before any 640 dpi handset was released.

What would be the resource configuration of Nexus 9 - 2014?

I was wondering what the resource configuration of Nexus 9 would be? Would it be sw720dp like the Nexus 10?
GSMArena says it's 1536 x 2048 pixels, 8.9 inches (~281 ppi pixel density), so I'm guessing it would be xhdpi and the width in dp would therefore be 768, so should fall under sw720dp. However, I'm not sure and would like to confirm with better informed people out there.
Also, is it a device which looks like it'd be used in landscape more than portrait? Currently for sw720dp, the default orientation for one of the screens in my app is landscape and was wondering if it would be best for Nexus 9 also.
According to the Getting Your Apps Ready for Nexus 6 and Nexus 9 post on the Android Developers Blog, the Nexus 9 has:
(...) a screen size of 2048 x 1536 pixels (288 ppi), which translates
to 1024 x 768 dip. This is a 4:3 aspect ratio, which is unique
compared to earlier tablets. The Nexus 9 falls into the xhdpi density
bucket, and you should already have assets in the drawable-xhdpi
folder.
So, yes sw720dp would seem to be correct.
About orientations, it says:
It’s very important that you don’t lock your app to a single
orientation. The Nexus 9’s natural orientation is portrait mode, while
it’s used in landscape mode with the keyboard.
According to this:
http://developer.android.com/tools/revisions/platforms.html
the Nexus 9 should be in the AVD device definitions (API21 5.0). However I am not seeing it. I do see Nexus 5 (not sure which API that came in).
Here it is. Nexus 9 Screen Information

Android display differences between WXGA with Nexus 7

I have a Nexus 7 tablet which should have a resolution of 1280px by 800px (WXGA). I develop on Eclipse and my layout is set to display at WXGA. Then, I can place my button and object and choose their size according to what I see on the Eclipse display. The problem is that what I see in Eclipse is very different from the display on the tablet. Everything is much bigger on the tablet and it causes me a lot of troubles.
I wonder if someone have an idea about this?
Edit
For some reason it seems like the 7inch WSVGA is the exact replication of my Nexus 7 screen. It is strange since it offers only 964×544 pixels while the Nexus 7 should give 1280x800
WXGA means nothing by itself. You should look at the density too. Nexus 7 is 213dpi (tvdpi) while a Galaxy Nexus is the same res but 240dpi (hdpi).
You should try to detect the screen size that the Android device has and then run code to re-position screen elements accordingly
In Unity scripting you would get the vars Screen.Width and Screen.Height , I'm not sure what the vars are called in normal android , but you would then set your screen elements to react to what ever size the screen it .

Apps for all Samsung Galaxy Tabs, how to make drawable and layouts

I have Galaxy tab 10.1 inch and I have made app and test on it, it works fine.
Now my question is will this app work on Galaxy 7 inch, Galaxy 7.7 inch, Galaxy note and Galaxy 8.9 inch
here is the details of these devices:
(My Device) Galaxy tab 10.1 inch --> 800 x 1280 pixels, 10.1 inches (~149 ppi pixel density)
Galaxy 8.9 inch--> 800 x 1280 pixels, 8.9 inches (~170 ppi pixel density)
Galaxy 7.7 inch --> 800 x 1280 pixels, 7.7 inches (~196 ppi pixel density)
Galaxy 7 inch --> 600 x 1024 pixels, 7.0 inches (~170 ppi pixel density)
Galaxy Note --> 800 x 1280 pixels, 5.3 inches (~285 ppi pixel density)
Please tell me for which device I have to make layouts again and what will be the folder names for drawable and layout
for Galaxy 7 inch --> 600 x 1024 pixels, 7.0 inches (~170 ppi pixel density) you can make layout folder with name "layout-large-mdpi-1024x600"....but for other device i am also unable to sort correct
As long as you are using relative layout mechanisms, it wil be ok. If you want to test it yourself, you can start your application in emulators using different screen sizes. There is also a Galaxy Tab Emulator.
read
Multiple Screen Resolution Support
Found answer myself: In order to support maximum devices, we can try to make a general layout which fits for all device, there may be minor trade offs, but one can live with that. We can make such a layout by using Relative Layout as much as possible, if there comes a situation where you can not handle multiple device support, we can try handling it with code at run time, but in such a manner, that it runs on all device.
complete answer is here
Layout for 720*1280 devices

What is the true available resolution of a 10.1 Android tablet?

I am creating a wire-frame android application for presentational purposes only. My target device is a 1280 x 800 10.1 inch tablet. I need to know the exact resolution of the device subtracting the navigation bar at the bottom. At first I made my graphics in 1280 x 800, but they didn't fit the screen properly because of the navigation bar, does anyone know the actual available resolution for a 10.1 1280 x 800 tablet?
I made a screenshot of an ICS emulator running on 1280x800 pixels. The system bar is 48 pixels high, so 752 pixels remain for your application.
Ok this is interesting, according to this the active resolution would be 1280x752 (Android 3.1) But this talks about something I support, design for any resolution.
I hope this helps out better. Good luck.

Categories

Resources