Commit b735c905 by Kunj Gupta

UOFLMA-77: Fix - Remove hardcode string.

parent a26400fe
......@@ -42,7 +42,10 @@ public class Util {
case YES_NO:
Spinner spinner = new Spinner(context);
ArrayAdapter<String> spinnerArrayAdapter =
new ArrayAdapter<>(context, android.R.layout.simple_spinner_item, new String[] {"None","Yes", "No"});
new ArrayAdapter<>(context, android.R.layout.simple_spinner_item, new String[] {
context.getResources().getString(R.string.none_string),
context.getResources().getString(R.string.yes_string),
context.getResources().getString(R.string.no_string)});
spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(spinnerArrayAdapter);
return spinner;
......
......@@ -6,6 +6,8 @@
<string name="back_string">Back</string>
<string name="error_string">* Required</string>
<string name="none_string">-None-</string>
<string name="yes_string">Yes</string>
<string name="no_string">No</string>
<string name="search_for_reference_string">Reference</string>
<string name="home_screen_string">Home Screen</string>
<string name="login_screen_string">Login Screen</string>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment