I have 2 doubts regarding storing the drawables in respective folders ie.. ldpi, mdpi..Which I couldn't find an answer anywhere.
Since I have all the possible folder names ie.., ldpi, mdpi, hdpi, xhdpi, xxhdpi should I delete the default drawable folder?
Or Should I move all the files from drawable-mdpi to the default drawable folder and delete the drawable-mdpi folder?
I am using few xml files as drawables, which are selectors, custom backgrounds etc.. Which contain the image references like
<item android:drawable="@drawable/ic_vote_clicked" android:state_pressed="true"/>
<item android:drawable="@drawable/ic_vote_clicked" android:state_focused="true"/>
<item android:drawable="@drawable/ic_vote"/>
Where should I place these xml files? In every folder? Or the default drawable folder?
Anyways the pngs like @drawable/ic_vote
are in every folder.
Anything that is not DPI related should go in the drawables folder.
Anything else that is dpi related, should be in the relevant DPI folder.
There is no reason to delete any of the folders.
So your xml files should be in the drawable folder.
Also, it doesnt matter what folder they are in, you still reference them with @drawable/
and it finds the right one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With