CountryCodePickerProject icon indicating copy to clipboard operation
CountryCodePickerProject copied to clipboard

Country picker slowing down layout

Open Chikrix opened this issue 9 years ago • 5 comments

Hey guys, first thanks for this cool project.

I'm having an issue where my keyboard really slows down when I click on the country picker or the Edittext view below the country picker, however, when I remove the country picker, my views works normally, but adding the picker really slows the layout down that it prevents the keyboard from leaving the screen even after closing the app. Please how do I fix this issue?

Chikrix avatar Nov 26 '17 00:11 Chikrix

CCP loads country list from XML at the time of layout preparation. But I never observed slow down because of the operation. Can you please confirm if it slowdowns on demo app?

hbb20 avatar Dec 05 '17 19:12 hbb20

This causes a slowdown for me as well in certain devices, loading the file in a background thread would be nice.

etanhatch avatar Feb 06 '18 14:02 etanhatch

That makes sense... I'm opening the issue. But cannot guarantee the time for implementation. PR is welcomed.

hbb20 avatar Feb 07 '18 00:02 hbb20

Thanks for the great work. Getting this error on compile

Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

Have tried enabling Multidex but still does not work. Any suggestion?

akiligedeon avatar Apr 23 '18 08:04 akiligedeon

@akiligedeon Try disabling instant run if you have it enabled and building again. That isn't related to the discussion here. I finally modified/removed the library to my use case to avoid the error.

Chikrix avatar Jul 03 '18 04:07 Chikrix