Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Andoid loads different layout  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to optimize my app to be well displayed in almost all devices, i created different layout folders for the cases it didn't work well.
So, on my res/ i have the BASIC layout, the "layout-small-ldpi" , the "layout-small-hdpi", the "layout-normal-ldpi", and "layout-normal-mdpi".

The point is that on emulator's device, it loads "layout-small-hdpi" instead of "layout-normal-mdpi" and
in a device(normal screen hdpi) instead of loading the basic layout it loads "layout-normal-mdpi".

What's going on??
 
Rancher
Posts: 42974
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're probably using an AVD that emulates an HDPI screen. You can set that during AVD creation (or change it afterwards).
 
Tasos Sim
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No,on the first case it uses a normal screen(4'') mdpi and it loads small-hdpi and
on the second case it uses a normal screen hdpi and it loads normal-mdpi.
 
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!