Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Andoid loads different layout

 
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: 43016
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.
 
Your mother is a hamster and your father smells of tiny ads!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic