Simple Date Picker

Additional

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

Advertising

simpleDatePicker

Simple Date Picker

Step 1. Add it in your root build.gradle at the end of repositories:

 allprojects {
  repositories {
   ...
   maven { url 'https://jitpack.io' }
  }
 }

Step 2. Add the dependency

 dependencies {
         implementation 'com.github.congfandi:simpleDatePicker:Dateicker'
 }

Step 3. Call Class

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