title: DataPicker looks like old design on new API's as well
body: <p>So the problem is very simple:</p>
  
  <p>I have integrated a <code>DatePicker</code> in my application.
  Not as a <code>DialogDatePicker</code> but as a View component (more precisely a <code>View</code> inside of a <code>Fragment</code> that is dynamically shown and removed from a <code>FrameLayout</code> contained in my main <code>FragmentActiviy</code> layout.).</p>
  
  <p>now my problem is that this DataPicker looks like this:
  <img src="https://i.stack.imgur.com/qNWPh.jpg" alt="enter image description here"></p>
  
  <p>and not like this:</p>
  
  <p><img src="https://i.stack.imgur.com/YG6At.jpg" alt="enter image description here"></p>
  
  <p>even when I target the higher API's, I tried setting my Min SDK to 16 or 17 as well but it didn't do any help either.</p>
  
  <p>Some one know why it happens? and how can I show the new look of the data picker?
  preferably on old versions of Android as well?</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks.</p>
  
  <p><strong>EDIT:</strong> code: </p>
  
  <p><strong>DataPickerFragment xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:orientation="vertical"
      android:paddingLeft="6.5dp"
      android:paddingTop="6dp"
      android:paddingRight="8.5dp"
      android:paddingBottom="8.5dp"
      android:background="@drawable/date_picker_background"&gt;
  
      &lt;DatePicker
          android:id="@+id/datePicker"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_margin="10dp"
          android:paddingBottom="40dp" /&gt;
  
      &lt;LinearLayout 
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;Button
              android:id="@+id/bCancel"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="bottom"
              android:layout_weight="1.0"
              android:onClick="buttonCanceDatePickerOnclick"
              android:text="@string/cancel" /&gt;
  
          &lt;Button
              android:id="@+id/bSave"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="bottom"
              android:layout_weight="1.0"
              android:onClick="buttonSaveDatePickerOnclick"
              android:text="@string/save" /&gt;
  
       &lt;/LinearLayout&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p><strong>DataPickerFramgnet class:</strong></p>
  
  <pre><code>public class DatePickerFragment extends Fragment {
  
      private Button bSave, bCancel;
  
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          View rootView = inflater.inflate(R.layout.date_picker_fragment_layout, 
                                           container, false);
          return rootView;
      }
  }
  </code></pre>
  
  <p><strong>UPDATE:</strong></p>
  
  <p><strong>Manifast file:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.emildesign.sgreportmanager"
  android:versionCode="1"
  android:versionName="1.0"&gt;
  
      &lt;uses-sdk
          android:minSdkVersion="13"
          android:targetSdkVersion="17" /&gt;
  
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
  
      &lt;!--  Crittercism  --&gt;
      &lt;uses-permission android:name="android.permission.READ_LOGS"/&gt;
      &lt;uses-permission android:name="android.permission.GET_TASKS"/&gt;
  
      &lt;application
          android:allowBackup="true"
          android:name="com.emildesign.sgreportmanager.SGRaportManagerAppObj"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"&gt;
  
          &lt;activity
              android:name="com.emildesign.sgreportmanager.activities.LoginScrActivity"
              android:screenOrientation="landscape"&gt;
  
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name="com.emildesign.sgreportmanager.activities.ReportsTableActivity"
              android:screenOrientation="landscape"&gt;
          &lt;/activity&gt;
          &lt;activity
              android:name="com.emildesign.sgreportmanager.activities.ParametersActivity"
              android:screenOrientation="landscape"&gt;
          &lt;/activity&gt;
          &lt;activity android:name="com.crittercism.NotificationActivity"/&gt;  
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>well I found where my problem was, I set:</p>
  
  <pre><code>android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" 
  </code></pre>
  
  <p>to make my application full screen and this applied the old style of the data picker changing it to:</p>
  
  <pre><code>android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen"
  </code></pre>
  
  <p>Creates the following DataPicker:</p>
  
  <p><img src="https://i.stack.imgur.com/alQHx.jpg" alt="enter image description here"></p>
  
  <p>It's better then before but this is still not the result I'm looking for.</p>