Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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: 42975
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!