Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
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...