CountryCodePickerProject
CountryCodePickerProject copied to clipboard
Allow to change height of view
When we change height of ccp view (like 64dp) flag, arrow, country code and name anchor itself to top of view, and furthermore clickable area is not fully cover the view.
Temporary solution:
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,ViewGroup.LayoutParams.MATCH_PARENT);
countryCodePicker.getHolder().setLayoutParams(layoutParams);
RelativeLayout rlClickConsumer =
countryCodePicker.getHolder().findViewById(R.id.rlClickConsumer);
rlClickConsumer.setLayoutParams(layoutParams);
rlClickConsumer.setPadding(0,0,0,0);
rlClickConsumer.setVerticalGravity(RelativeLayout.CENTER_IN_PARENT);