Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Images for Responsive Design

$
0
0

I'm trying to find out an answer for the images issue that I'm having.

Apparently, my phone (Samsumg S5 - 1080 x 1920) and the emulator (Nexus S - 480 x 800) are using the same folder to gather the images: [Project]/app/assets/android/images/res-long-port-hdpi

Obviously this won't work because I can't use the same images for both.

How can I split them into 2 folders? Should I do conditional code and rename the images differently? Or should I create a new folder for the high resolution phone (S5) and use it?

I've looked at the android documentation http://developer.android.com/guide/practices/screens_support.html and they only mention the multiple densities that are obviously on: [Project]/platform/android/res/drawable-xxxhdpi

Should I use that folder instead? Why do we have 2 locations on a appcelerator project to add resources? This is very confusing. And how do I access that res folder from my app once /images would point to the /app/assets/android/images folder?

I haven't found a android documentation that would mention anything about the /app/assets/android/images folder.

Please let me know, this is driving me nuts. Thank you, Marceu


Viewing all articles
Browse latest Browse all 8068

Trending Articles