Simple Date Picker

Additional

Language
Java
Version
Dateicker (Jan 7, 2018)
Created
Jan 8, 2018
Updated
Jan 8, 2018
Owner
Cong Fandi (congfandi)
Contributor
Cong Fandi (congfandi)
1
Activity
Badge
Generate
Download
Source code
APK file

Advertising

simpleDatePicker

Simple Date Picker

how to use

  1. implement DatePickerDialog.OnDateSetListener,

  2. overide methode @Override public void onDateSet(DatePicker datePicker, int year, int month, int day) {



    } 3.call class Picker full implementation like this

import com.congfandi.simpledatepicker.Picker;

public class MainActivity extends AppCompatActivity implements DatePickerDialog.OnDateSetListener{

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    new Picker().show(getSupportFragmentManager(),null);

}

@Override
public void onDateSet(DatePicker datePicker, int year, int month, int day) {
   
}

}