hbb20 / CountryCodePickerProject

Country Code Picker (CCP) is an android library which provides an easy way to search and select country or international phone code. Also supports Android EditText phone mask and international phone validation.
Apache License 2.0
1.52k stars 506 forks source link

How to create countrycodepicker programmatically? #289

Closed satheesh424 closed 5 years ago

satheesh424 commented 5 years ago

Hi, Is it possible to create Country code picker programmatically. Actually as per my project requirement I need to create country code picker dynamically, So how to create. Please help me on this.

hbb20 commented 5 years ago

As the CCP is extended from the Relative Layout, you can create CCP just like Relative Layout. Almost all properties can be set programmatically as well as XML. For more detail on that, please read wiki.