Simple Date Picker

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) {
   
}

}