02-08-2013 12:00 PM
Is anyone aware of use the same QML layout for an app for the q10 but use images with different resolutions? I remember for the 6.0 and 7.0 the naming convention was different, any ideas on how to do it in bb10?
Solved! Go to Solution.
02-08-2013 12:20 PM
You can use a folder 720x720 in the assets folder. Not sure if you can only put images in there but just test it.
02-08-2013 12:38 PM
The only thing I found with a quick search .
02-08-2013 02:41 PM
I tried it and it works for me. The images is different on the Z10 and on the Q10. Make sure the same structure is followed and the images are named the same.
If your images are in the folder /assets/images make sure that the images for the Q10 are in the folder /assets/720x70/images. If they are in the /assets folder, then your images should be in the /assets/720x720 folder.
No need for separate qml files.
02-08-2013 02:48 PM
No, I use stacklayouts. I didn't test it with different resolution assets. I just tested with 2 different images of the same size. My Q10 simulator shows another image then my Z10 simulator show in my opinion, the Q10 should also load other resolution images.
Did you do an absolute positioning on your elements? Because this way, the image will always stay at the same place, regardless of the resolution.
02-08-2013 02:54 PM
well I just did a test. I created the 720x720 directory and an images directory inside and I renamed the currently images directory to "1". When I went to run the app in the q10 simulator nothing loaded because it couldn't find the images. so here is my directory structure and I guess you can tell me if something is wrong.
02-08-2013 03:05 PM
And you are running the latest 10.1 SDK right? Because asset selection is only available from the 10.1... It's really weird because in my application he really does what you want. He picks the asset out of the 720x720 folder and shows it on the Q10 simulator. When the asset does not exists in the default folder, he just doesn't show it on the Z10 simulator.
Does he show it properly in the design mode of the qml? Because I can see if it's working right there. Don't have to run it to see it working or not...