android-screen-support


Supporting Multiple devices in android


I am new to android development. I want my application to run on multiple resolution. I went through documentation, some stackoverflow post's. I end up with creating multiple layout's. Which I have done in my project.
Here is my layout structure:
layout-normal-mdpi
layout-normal-hdpi
layout-normal-xhdpi
layout-large-mdpi
layout-large-hdpi
layout-large-xhdpi
and my drawable folder structure is
drawable-ldpi
drawable-mdpi
drawable-hdpi
drawable-xhdpi
I added
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"/>
in my manifest file.
It looks good on mdpi devices(not tested on all) Tested on Htc-epxlorer Sony-experia tipo.
I tested it on Sony xperia arc s hdpi device and htc one v it looks good.
but when it comes to Samasung galaxy Note and Note 2.Its totally messed up!.
I end up with solution for creating layout folder like layout-large-port-xhdpi-1280x800. Which works but i feel not a good practice.
I have images of resolution (Port mode)
for mdpi : 480X320
for hdpi : 800X480
for xhdpi: 1280X800
Even with Galaxy nexsus 4.65in(720p). It gives different feel. Basically what I want to know is what should be the image resolutions for different densities? and what should be layout folder structure for different devices?.Cause it gives different look on different inch devices like I said on 4in nexsus and 4.6in nexsus it looks different when I am adding Images. Even tablets are of resolutions 1280X800.
Why things go wrong even with the same resolution but just screen size change?.
Note: I have used RelativeLayout as layout and no hardcoded pixel values everything is in dp.
Any help will be appreciated greatly. Thanks in advance.

Related Links

How to turn off screen of android phone programmatically?
Supporting Multiple devices in android
Error on small screen

Categories

HOME
gitlab
reflection
reserved
angular-material
office365api
cakephp-2.5
twitter-bootstrap-4
callback
indesign
applepay
imacros
resize
zend-framework3
gz
django-simple-history
systemc
highlight.js
fatal-error
database-replication
jqwidget
custom-wordpress-pages
jasonette
wkwebview
dcevm
realex-payments-api
trading
java-7
angular2-aot
one-to-many
apache-commons-io
saas
compatibility
flink-streaming
skia
r-raster
accelerate-framework
android-ble
appfabric
dartium
adobe-premiere
sqlite2
wso2carbon
revapi
errordocument
worksheet
powercli
csound
lift-json
capacity
epson
zendesk-app
minimization
slicknav
mikroc
etsy
php-parse-error
rhino-servicebus
unity-networking
maven-tomcat-plugin
qtableview
intel-fortran
cartesian-product
icu4j
feedback
graph-drawing
generic-programming
remobjects
oxwall
ng-animate
onactivityresult
project-planning
concurrent-collections
multiprocessor
c18
farseer
inbox
spring-io
ftps
mylyn
mqx
jquery-knob
hosts-file
nsmanagedobject
libc++
infobox
yslow
sef
dbisam

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App