title: Android - How to assign Typeface to NumberPicker
body: <p>I am using Three NumberPickers to create a DatePicker in different calendar system, and trying to set typeface to NumberPicker controls. according to <a href="https://stackoverflow.com/a/13202860/2178842">this</a> post on SO, 
  i looked at number_picker.xml. the numberpicker is created using two ImageButton and one EditText as Follows:</p>
  
  <pre><code>&lt;merge&gt;
      &lt;ImageButton ... /&gt;
      &lt;EditText .../&gt;
      &lt;ImageButton ... /&gt;
  &lt;/merge&gt;
  </code></pre>
  
  <p>so, as a sample, i used the following code for year NumberPickers:</p>
  
  <pre><code>NumberPicker date_y = (NumberPicker) findViewById(R.id.np_year);
  Typeface tf;
  tf = Typeface.createFromAsset(getAssets(),"fonts/bnazaninbd.ttf");
  EditText et = (EditText) date_y.getChildAt(0);
  et.setTypeface(tf);
  </code></pre>
  
  <p>1st problem is why getChildAt(0) works for Edit text, though Edit text is 2nd object and it should be getChildAt(1).</p>
  
  <p>2nd, the editText font changes when the Activity loads (but just the EditText, and not to texts at above and bottom of it), but as the numberpicker slids, the Typeface changes back to its original.</p>