android - Override res folder determination -
so, i'm making app has many different res folders values, drawables , layouts. variation screen size, mobile country code (i'm using field override , enable different skins in app, ios targets), landscape / portrait, screen widths, languages & dpi.
one of biggest problems app fact need support both tablets & phones. create layout phones under layout-normal. if this, seems must copy-paste tablet layout both layout-large & layout-xlarge folders. if don't, app defaults normal layout.
i wondering if there way in android override way runtime determines folder goes to. way, via code, direct run-time correct folder depending on device's configuration, , not need copy-paste layouts on place.
note:
i specified 1 reason want this, there several others. i'm looking way override way android determines res folder goes to, not different solution 1 problem specified above.
any advice appreciated!
in order avoid duplication use resource alias mechanism described here. system can used images, layouts , other resources values folder.
Comments
Post a Comment