Is it possible to load images run-time from drawable-hdpi or drawable-mdpi depending upon device density?
I have searched a lot but could not find the solution.
Is it possible to load images run-time from drawable-hdpi or drawable-mdpi depending upon device density?
I have searched a lot but could not find the solution.
do you found the solution ?? I need to use the drawables folders, on a sprite but I have no success, could you help me ??
thanks
@slackmoehrle hi, I am working on an android game so, I have the same question Is it possible to load images run-time from drawable-hdpi or drawable-mdpi depending upon device density?
I’m not entirely sure, actually. I found a few things: https://stackoverflow.com/questions/20071887/what-is-the-meaning-of-drawable-hdpi-drawable-ldpi-drawable-mdpi-drawable-xhd
But I think @drelaptop is better to ask.
thanks for the reply and I am aware of those things that’s why I asked that can access that in cocos2dx so we don’t need to worry about resolution when we are creating an app for different resolution phone
do this by set search paths properly.
cpp-empty-test
on v3 branch have show the similar case, the Resources
dir like:
├── ipad
│ ├── CloseNormal.png
│ ├── CloseSelected.png
│ └── HelloWorld.png
├── ipadhd
│ ├── CloseNormal.png
│ ├── CloseSelected.png
│ └── HelloWorld.png
└── iphone
├── CloseNormal.png
├── CloseSelected.png
└── HelloWorld.png
the code is:
thank’s for help me out