Closed rchampa closed 7 years ago
Yes. It possible. See my code below!
CountryCodePicker countryPicker = (CountryCodePicker) findViewById(R.id.countryPicker);
final TextView selectedCountryCodeTV = (TextView) countryCodePicker.findViewById(R.id.textView_selectedCountry);
selectedCountryCodeTV.setText(""); // Or set this textView is `Invisible`
countryCodePicker.setOnCountryChangeListener(new CountryCodePicker.OnCountryChangeListener() {
@Override
public void onCountrySelected() {
if (selectedCountryCodeTV != null) {
selectedCountryCodeTV.setText("");
}
}
});
Update to version 1.7.7 and set
<com.hbb20.CountryCodePicker
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:ccp_showPhoneCode="false"
app:hideNameCode="true" />
This will hide phone code from CCP and searchbox. Name code will be removed from CCP. Finally Flag will remain in CCP.
Is posible shows only the flag?