title: android number picker default design changes in jelly bean and ice-cream sandwitch
body: <p>i've created an android application which displays a number picker, it all works fine...but the problem is with the design....when i run the application in gingerbread the number picker looks fine good....but when i run the same stuff in ice-cream sandwich and jelly bean the number picker design is been altered just like as shown below.</p>
  
  <p>can anyone please tell me how to retain the default number-picker design that is in gingerbread in jelly bean</p>
  
  <p>when runs in <strong>ice-cream sandwich</strong> and <strong>jelly bean</strong></p>
  
  <p><img src="https://i.stack.imgur.com/vIqTi.png" alt="enter image description here"></p>
  
  <p>when runs in <strong>ginger-bread</strong></p>
  
  <p><img src="https://i.stack.imgur.com/A2hPd.png" alt="enter image description here"></p>
  
  <p>i'm using a custom dialog box within which the number picker is placed, the code is as given below</p>
  
  <pre><code>import android.app.Activity; 
  import android.app.Dialog; 
  import android.graphics.drawable.ColorDrawable; 
  import android.os.Bundle; 
  import android.view.View; 
  import android.view.Window; 
  import android.widget.Button; 
  import android.widget.NumberPicker; 
  
  public class QuantityChangeDialog extends Dialog implements android.view.View.OnClickListener { 
  
  public Activity c; 
  public Dialog d; 
  public Button save, cancel; 
  NumberPicker np; 
  
  public QuantityChangeDialog(Activity a) { 
  super(a); 
  // TODO Auto-generated constructor stub 
  this.c = a; 
  } 
  
  
  @Override 
  protected void onCreate(Bundle savedInstanceState) { 
  super.onCreate(savedInstanceState); 
  
  requestWindowFeature(Window.FEATURE_NO_TITLE); 
  this.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT)); 
  setContentView(R.layout.selecteditem_dialog); 
  save = (Button) findViewById(R.id.btn_save); 
  cancel = (Button) findViewById(R.id.btn_cancel); 
  save.setOnClickListener(this); 
  cancel.setOnClickListener(this); 
  np = (NumberPicker) findViewById(R.id.qntypicker); 
  np.setMaxValue(120); 
  np.setMinValue(1); 
  np.setValue(3); 
  
  } 
  
  @Override 
  public void onClick(View v) { 
  switch (v.getId()) { 
  case R.id.btn_save: 
  c.finish(); 
  break; 
  case R.id.btn_cancel: 
  dismiss(); 
  break; 
  default: 
  break; 
  } 
  dismiss(); 
  } 
  }
  </code></pre>