CountryCodePickerProject icon indicating copy to clipboard operation
CountryCodePickerProject copied to clipboard

Allow to change height of view

Open javad-vovin opened this issue 6 years ago • 1 comments

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.

javad-vovin avatar Sep 07 '19 20:09 javad-vovin

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);

noctwm avatar Nov 13 '19 15:11 noctwm