Skip to content

Instantly share code, notes, and snippets.

@d-j-kendall
Created May 24, 2019 18:25
Show Gist options
  • Save d-j-kendall/6ea5a65f97f02e11cce18e0bec1176e4 to your computer and use it in GitHub Desktop.
Save d-j-kendall/6ea5a65f97f02e11cce18e0bec1176e4 to your computer and use it in GitHub Desktop.
Better way to structure android string array
<string-array translatable="false" name="create_user_permission_type">
<item>@string/machine_operator</item>
<item>@string/supervisor</item>
<item>@string/machine_tech</item>
<item>@string/machine_admin</item>
</string-array>
<string name="super_admin">Super Admin</string>
<string name="machine_operator">Machine Operator</string>
<string name="supervisor">Supervisor</string>
<string name="machine_tech">Machine Tech</string>
<string name="machine_admin">Machine Admin</string>
<string-array translatable="false" name="preferred_pressure">
<item>@string/units_psi</item>
<item>@string/units_bar</item>
</string-array>
<string name="units_psi">PSI</string>
<string name="units_bar">Bar</string>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment