Issue
I'm new to development and would like to clarify a couple of simple points, When I create a new drawable xml file I place it in the "drawable-hdpi" folder and only that folder, I can access it fine like so....
android:src="@drawable/button_border"
but is that the correct correct way? or should they be in their own folder in the res folder, or just the file placed in the res folder and not in any particular sub-folder?
also if I wanted to create a arrays.xml
file what folder should that be created in.
Thank you.
Solution
Your arrays should go to the values folder, so res/values/arrays.xml, as per the documentation.
As for the images, it is a good practice to provide relevant images in each drawable folder according to the screen sizes you plan to support for your app, or some of your users will end up seeing badly sized images, more details here. You can use the Android Asset Studio to generate icons, for example.
Answered By - 2Dee
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.