-
-
Notifications
You must be signed in to change notification settings - Fork 507
Update Guide for v2.0.0
Harsh Bhakta edited this page Jul 15, 2017
·
1 revision
Version 2.0.0 is a big update which brings many features especially for full number.
If you are using any lower version, you need to change few small things to get v2.0.0 working.
-
To avoid name clashes with other packages and such issues now attributes has ccp_ / ccp_dialog_ attributes.
For example, "textSize", "contentColor" are now "ccp_textSize", "ccp_contentColor".
This applies to every attribute, so you need to change them in your XML file.
Along with prefix to attributes, there are few changes in attribute name itself to follow naming conventions.
Attribute name before v2.0.0 => From v2.0.0
- defaultCode => ccp_defaultPhoneCode
- hideNameCode => ccp_showNameCode
- ccpClickable => ccp_clickable
- ccpLanguage => ccp_defaultLanguage (Used as fallback language if autoDetectLanguage is enabled)
- keyboardAutoPopOnSearch => ccpDialog_keyboardAutoPopup
- selectionDialogShowSearch => ccpDialog_allowSearch
- ccpSearchBox_showPhoneCode => ccpDialog_showPhoneCode
- How to Integrate into your project
- Full Number Support
- Use as a Country Selector
- Auto detect country
- Auto detect language
- Remember last selection
- Country Preference
- Custom Mater List
- Exclude Countries
- Example phonenumber as hint
- Multi Language Support
- Default Country
- Country Selection Listener
- Dialog events listener
- CCP Theme Customization
- CCP Dialog Theme Customization
- Custom TypeFace
- Read Selected Country
- XML Properties
- Update Guide to v2
- Guide to Add New Language Support
- Guide to add New Country
- Change contry names for local project
- Handle CCP ClickListener Manually
- Custom Dialog Title/Hint/Empty Result ACK
- Flag Emoji Support (BETA)
- Change Log