Android : Android string array resource: duplicate xml declaration for larger screens?

on Wednesday, October 8, 2014


I have this string array resource in /res/values/arrays.xml, for a ListPreference:



<string-array name="pref_font_size_entries">
<item>Small</item>
<item>Normal</item>
<item>Large</item>
<item>Extra Large</item>
</string-array>


If I want to add an extra list item (see the last <item>Huge</item> ) on larger screens, do I have to duplicate the entire declaration in /res/values-sw600dp/arrays.xml?



<string-array name="pref_font_size_entries">
<item>Small</item>
<item>Normal</item>
<item>Large</item>
<item>Extra Large</item>
<item>Huge</item>
</string-array>

0 comments:

Post a Comment