android - Activate a specific dimens.xml at runtime -


i need choose specific dimens.xml @ runtime after app checks screen capabilities. don't want android choose me selecting automatically project folder (\values, \values-large, ...).

i have manually due bad screen configuration (density , dimension) of low-cost china tablet. can that?

have tried force configuration change?

    displaymetrics metrics = new displaymetrics();     metrics.densitydpi = displaymetrics.density_medium;     metrics.setto(metrics); 

not sure if works though. it's bad idea ignore os thinks best.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -