swapnillengure333 / ContryCodePicker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ContryCodePicker

Android bottomsheet country code picker

AndroidDateRangePicker

Android Date Range Picker

Screenshot Screenshot Screenshot

Step 1. Add the JitPack repository to your build file

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.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);

About


Languages

Language:Java 100.0%