Code example for DatePicker

Methods: setCalendarViewShown

0
public class UIElementCreator { 
	 
	//Use to create a date picker UI element 
	public static DatePicker createDatePicker(Context context)
	{ 
		DatePicker thisDatePicker = new DatePicker(context);
		thisDatePicker.setCalendarViewShown(false);
		return thisDatePicker;
	} 
	 
	//Use to create a static Text Label UI element 
	public static TextView createLabel(Context context, String labelText)
	{ 
		TextView thisTextView = new TextView (context);
		thisTextView.setHint(labelText);
		 
		return thisTextView;
	} 
	 
	//Use to created a Spinner UI element 
Contextual code suggestions in your IDE  Get Codota for Java