title: Custom NumberPicker with variable for textSize
body: <p>i was trying to create my own numberPicker as i saw <a href="https://stackoverflow.com/questions/6958460/android-can-i-increase-the-textsize-for-the-numberpicker-widget/12084420#12084420">here</a> , but i can't use a variable to set the textSize.
  <br>
  Can anyone guess why isn't that working?</p>
  
  <pre><code>public class MyNumberPicker extends NumberPicker {
  
      float myTextSize = 35.0f;
  
      public MyNumberPicker(Context context, AttributeSet attrs) {
          super(context, attrs);
      }
  
      @Override
      public void addView(View child) {
          super.addView(child);
          updateView(child);
      }
  
      @Override
      public void addView(View child, int index,
              android.view.ViewGroup.LayoutParams params) {
          super.addView(child, index, params);
          updateView(child);
      }
  
      @Override
      public void addView(View child, android.view.ViewGroup.LayoutParams params) {
          super.addView(child, params);
          updateView(child);
      }
  
      private void updateView(View view) {
          if (view instanceof EditText) {
              ((EditText) view).setTextSize(myTextSize);
              ((EditText) view).setTextColor(Color.BLACK);
          }
      }
  
      public void setTextSize(int _textSize) {
          myTextSize = _textSize;
      }
  }
  </code></pre>
  
  <p><br></p>
  
  <p>if I replace this line</p>
  
  <pre><code>((EditText) view).setTextSize(myTextSize);
  </code></pre>
  
  <p>with this</p>
  
  <pre><code>((EditText) view).setTextSize(35);
  </code></pre>
  
  <p>works, but then I can't change the textSize;</p>
  
  <p><strong>UPDATE</strong> <br>
  after some more tests, i found out that <code>addViews</code> are called after the <code>setTextSize</code>, but still when the <code>updateView</code> runs the value of <code>myTextSize</code> is zero.</p>