Skip to content

fasilthottathil/CountrySelectionDialog

Repository files navigation

CountrySelectionDialog

Screenshot

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.fasilthottathil:CountrySelectionDialog:1.0.5'
}

Implementation

 CountrySelectionDialog().create(this)
     .show()?.setOnCountrySelected {
         Log.d(COUNTRY_NAME, it.name)
         Log.d(COUNTRY_CODE, it.code)
         Log.d(COUNTRY_DIAL_CODE, it.dial_code)
     }