I am creating preferences for my app and noticed some examples store the XML in res/layout and other store them in res/xml. Is there a reason or best practice to store them in one vs. the other ? I already have a bunch of layout files in my res/layout folder, so does it make sense to put the preference layout files in res/xml ?
This is from Google.
use res/xml/ for arbitrary XML files that can be read at runtime by calling Resources.getXML().
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