Cant find proper screen layout - android

I'm working on an android app, and almost done, the only problem is screen layouting, I have a samsung ace and samsung s4. According to the docs, they are both on normal screen, and s4 is categorized on both normal and large.
I don't know what to do, I have layout-normal that works for my samsung ace but not for s4.
I'd tried layout-sw600dp for s4 but still don't work, if you have a better idea please help me.

Try layout-large for your s4.
if that doesn't work you can handle checking and reacting to the s4 programmatically.

Related

Confusion with my layouts - android

I'm currently working on my application, which tries to support different screen resolutions but I noticed a major problem with my layouts. I'll explain:
I have two folders in my res folder. They are called "layout" and "layout-sw360dp" which is meant to support big screens like Samsung Galaxy S4, HTC One, etc.
Now, when I try to run my application on my private phone, galaxy S4, the app looks fine and all of the images and the components are perfect.
But when I try to run my app on an HTC One device, suddenly the layout looks small, like very small. It supposes to fit the entire screen, like in my galaxy s4.
It's like HTC One and Galaxy S4 don't use the same layout folder, although their screens sizes are almost the same.
If you guys can clarify this matter for me I would really appreaciate that.
Edit: I have tried to run my app on an Samsung Galaxy S5 device and it looks find, like the way it should. What is the problem with HTC One?
Physical size is usually measured in inches, it simply tells you the real device's screen size
dpi, is NOT correlated with it. Dpi expresses screen density, how many pixels are shown in a given area (usually a square inch). It could be considered as a measure of screen quality.
Resolution is given by the product of the two; it expresses the total number of physical pixels on a screen.
android:anyDensity="true"
Samsung Galaxy S4, HTC One have different physical size : DIFFERENCE
Refer this for how to choice best resolution : DOC

Issue with layouts for Samsung galaxy note and Samsung galaxy grand duos

I have created an application with different layout folders. When I tested the application I found that both Samsung galaxy Note2 and Samsung Galaxy Grand Duos is taking the same layout folder 'layout-sw320dp-long-port'. What is the issue here? Can anybody tell that what is the correct layout for both phones?
Thanks in advance
Sundeep.S.
I never believe that Note2 has same screen resolution as Grand Duos.
Check this links :
ScreenSupports
Review Samsung Note2
Review Samsung Galaxy Grand Duos
As you see this phones has different screen resolution.

CSS #media queries on Samsung Galaxy S III

I'm working on a website with responsive design and mobile optimization.
I'm having issues targeting the Samsung Galaxy S III default browser, as it does not scale font-sizes.
The funny thing is that everything works fine using Google Chrome for Android on the same device, so I don't think there is a problem with my #media queries. Of course I've triple checked them and I am sure the Galaxy S III displays fits in them. All the other conditional styles apply, except for font-sizes.
Everything works well on other Android based devices, eg the Samsung Galaxy Nexus's default browser.
Is there anything I should do to target The Galaxy S III default browser? Does it interpret in some funny way font sizes?
To answer one of your questions yes it does interpret font size in a odd way. The Samsung GS3 default browser is pretty bad in that regards. I am not really sure there is a work around on it. I can't imagine too many people are using the default browser anyways.

Notification.BigPictureStyle with actions not rendered correctly on Samsung Galaxy S III

I'm struggling with this issue on SGS III. My app works well on Galaxy Nexus and Nexus 7 but on SGS III there are actions not rendered correctly. See attached picture.
Anybody has any idea how to fix it?
Please note that bitmap is 450 * displayDensity wide and 450/2 * displayDensity high.
I finally ended up with custom RemoteViews emulating standard look. Not nice solution but gave me way how to add more than three actions too.

Android: Samsung Galaxy S3 screen size for layout

Is anyone out there testing on a Samsung Galaxy S3 yet?
Specifically, does it have what is considered a large or normal screen for layout purposes?
I have the Galaxy Nexus and it takes normal layouts, but I read the Galaxy Note is considered a large screen.
Thanks in advance.
As owner of Samsung Galaxy S3 I confirm - it is "normal" screen, not "large" one. Also "xhdpi" when it comes to density.
Samsung S3 takes images from drawable-sw360dp and layout files from layout-sw360dp folder only...
Here's a link to the complete specifications for the European version of the Samsung Galaxy S3. The screen is 720 x 1280 pixels and 4.8 in. diagonal. The American version is the same as far as the screen goes.
all phones will use the drawable folder by default if no others are specified, but officially you should use xhdpi and hdpi for these
Create a layout specifyc for Galaxy S3. Android S3 layout vs Galaxy Nexus layout

Categories

Resources