How do i used icons and images for different screens?

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

In android and IOS we have different folders where we can import images of different sizes how can we achieve the same in kony?

Hi @Levh Slvtew​

If you check the Kony application folder structure, under resources we have different folder like common, mobile, tablet, etc.

Under Mobile again we have common/native/web, inside the native again we have iPhone/Android etc. Under iPhone we need to keep our @2x and @3x images. Under Android folder we will have draw able folders.

Check the doc link for more details.

http://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Default.htm#Adding_and_Managing_Images.htm?Highlight=retina%20images

Hi @Twvcey Rvndvll​ ,

Even after adding the images in the specified folder, it is not showing up. Attaching a screenshot of the folder structure

Hello @Rose Butlew​

Can you share us the images which you have added to the folder. You need to add resolution specific images to the respected folders then only the device will pick up.

For example , if I have placed a image 133x134 in resources/common

resources\mobile\native\android\drawable-ldpi - 45x46

resources\mobile\native\android\drawable-mdpi - 89x90

resources\mobile\native\android\drawable-xhdpi -133x134

resources\mobile\native\android\drawable-xxhdpi -120x120

Hi @Rose Butlew​ ,

Please check the filenames. There are specific naming conventions which must be followed when you add images to a kony application.

Also, after placing the images in the respective folders, please refresh assets again. Please refer the below link for naming convention as mentioned in kony documentation : http://docs.kony.com/konylibrary/visualizer/viz_widget_prog_guide/Content/Image.htm

Hi @Levh Slvtew​

I am facing same issue with android you were facing in this question .

Would you please share the solution of this question if you got the answer .?

I am stuck in my work because of this.

Thanks!!

Try to import the images from Visualizer for the respective folder. This way Visualizer will take care of the naming convention and you will be able to see your images in all the folders.