android - App Crashes. Error Inflating XML. Cant find image because xxxhdpi folder is not there -
switched eclipse project android studio. maintaining resources under drawable-mdpi folder only. in studio preview of xml loads images correctly. when run app in device resolution higher mdpi app crashes, shows error inflating binary xml. after long analysis found issue device trying load images corresponding density folder not available. created folder drawable-xhdpi , put images in folder. app works fine. why android studio can't pick image other density drawable folder , resize possible eclipse. can't maintain 5 different drawable folders because there lots of images.
you have add "drawable-hdpi" resource directory , paste hdpi resources there because 70% android devices supports hdpi resolution images.
if maintain hdpi, ok. android manages remaining resouces hdpi resouce directory.
Comments
Post a Comment