Skip to content

Themeing

Mukesh Solanki edited this page Sep 1, 2018 · 2 revisions

The library also provides an option to use the new Material Design 2 look and feel with the rounded corners. This is turned on by default. But if you want to turn it off it can be done with one single switch and it will switch back to the old boxier look. All you need to do is call theme() on the builder. It accepts only CountryPicker.THEME_NEW and CountryPicker.THEME_OLD. Below is the snippet on how to toggle this.

CountryPicker.Builder builder =
        new CountryPicker.Builder().with(Context)
            .listener(OnCountryPickerListener).theme(CountryPicker.THEME_OLD);