0

i'm having a hard time handling multiple screen sizes (meaning supporting different devices with different screen sizes)..could anyone guide me into the right path??

2
Contributors
4
Replies
13
Views
4 Years
Discussion Span
Last Post by cool_zephyr
0

thank you for the link.

my folder structure is like this

-res
    -drawable-hdpi
    -drawable-ldpi
    -drawable-mdpi
    -drawable-xhdpi
    -drawable-xxhdpi
    -layout
    -menu
    -values

do i have to make a drawable for my button in each of the 6 drawable folder given above?? also, do i have to write a layout for each of the hdpi, ldpi, mdpi, xhdpi and xxhdpi??

also i tried using different png images for different screens..but this method increases the apk size by a huge factor..so should i create xml drawables?

0

You have to consider to what audience you are addressing this app, is it suitable to phone, tablet or both. Should application be used in portrait or landscape only, or can user rotate it. Based on that you need to consider layouts for landscape, layouts for tablets (like 7" can show in portrait show 2 fragments together, but in landscape you can show even 3 fragments).

Drawable will assigned appropriate resource to app based on device specs.

For buttons and some simple graphics you can go with 9patches or create drawable layouts when necessary

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.