Back to project page utexas-utilities.
The source code is released under:
Apache License
If you think the Android project utexas-utilities listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.nasageek.utexasutilities.fragments; //from w ww. j a v a 2 s .co m import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.ViewGroup.LayoutParams; import android.widget.DatePicker; import com.actionbarsherlock.app.SherlockFragment; public class DatePickerFragment extends SherlockFragment { public DatePickerFragment() { } public static DatePickerFragment newInstance(String title) { Bundle args = new Bundle(); args.putString("title", title); DatePickerFragment dpf = new DatePickerFragment(); dpf.setArguments(args); return dpf; } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // View view = new View(getActivity()); // view. // FrameLayout layout = new FrameLayout(getActivity()) DatePicker picker = new DatePicker(getActivity()); picker.setLayoutParams(new ViewGroup.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); return picker; } }