How do I store this 2 Dimensional array in strings.xml?
private String[][] children = {
{ "Arnold", "Barry", "Chuck", "David" },
{ "Ace", "Bandit", "Cha-Cha", "Deuce" },
{ "Fluffy", "Snuggles" },
{ "Goldy", "Bubbles" }
};
Your usage case would help answer the question, because depending on your situation, my suggestion would be to put the individual Strings in
strings.xmland then use anint[][]inside your class pointing to the string resources:I know that doesn’t directly answer your question as to how to do that in XML, but unless you provide a usage case that makes it clear that it’s necessary to do that, there’s no reason to do anything harder than what I’ve described.