Android bottomsheet country code picker
Android Date Range Picker
Step 1. Add the JitPack repository to your build file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.swapnillengure333:ContryCodePicker:1.0'
}
Step 3. Create CountryClickListener to get selected country code in your activity
CountryClickListener countryClickListener = new CountryClickListener() {
@Override
public void onItemClick(String name, String code) {
Toast.makeText(MainActivity.this,name+ " " +code, Toast.LENGTH_LONG).show();
}
};
Step 4. Call CalenderInit method with param activity and DateSelectListener
CountryCodePicker.PickerInit(MainActivity.this, countryClickListener);