title: NumberPicker.Formatter does not seem to be invoking in Android
body: <p>I am trying to use a NumberPicker to display an array of Strings, but when I try and get the value back of the current String, the value is the integer index value of the String within the array which is the default response.</p>
  
  <p>I have been trying to use NumberPicker.Formatter to get the actual String as a value back as opposed to the integer index value. I have implemented this, but it doesn't seem to be invoked. Could someone please tell me why this is and what I can do to fix it. Thanks in advance.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>final NumberPicker npUnits = (NumberPicker) numberPickerView.findViewById(R.id.numberPicker2);
  
              npUnits.setMinValue(1);
              npUnits.setDisplayedValues(tableUnitsArray);
              npUnits.setMaxValue(tableUnitsArray.length);
              npUnits.setFormatter(new NumberPicker.Formatter() 
              {
                  @Override
                  public String format(int value) 
                  {
                      ArrayList&lt;String&gt; stringArrayList = (ArrayList&lt;String&gt;) Arrays.asList(tableUnitsArray);
                      String defaultUnits = stringArrayList.get(value);
                      System.out.println("Value formatted result: " + defaultUnits);
  
                      return defaultUnits;
                  }
              });
              npUnits.setDescendantFocusability(NumberPicker.FOCUS_BLOCK_DESCENDANTS);
  </code></pre>