title: DatePicker dialog not working propely and not looking nice
body: <p>I am trying to use a DatePicker:<br>
  My code is:  </p>
  
  <pre><code>DatePicker datePicker = (DatePicker) v.findViewById(R.id.dialog_date_datePicker);
          datePicker.init(year, month, day, new OnDateChangedListener() {
              @Override
              public void onDateChanged(DatePicker view, int year, int month,
                      int day) {
                  mDate = new GregorianCalendar(year, month, day).getTime();
                  getArguments().putSerializable(EXTRA_DATE, mDate);
              }
          });
  </code></pre>
  
  <p>But when I select a date the <code>onDateChanged</code> method is never called. After googling I found that if I changed my date picker layout to include: <code>android:datePickerMode="spinner" /&gt;</code> and remove <code>android:calendarViewShown="false"</code> the <code>onDateChanged</code> is called and the code works but the date picker dialog is really bad looking.<br>
  My layout is:  </p>
  
  
  
  <pre><code>&lt;DatePicker xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/dialog_date_datePicker"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:orientation="vertical" 
      android:datePickerMode="spinner" /&gt;
      &lt;!--  android:calendarViewShown="false" --&gt;  
  </code></pre>
  
  <p>So why is the calenderViewShown attribute causing a problem and how can I improve the look of the date picker UI dialog?</p>