Skip to content

Change Flags

Harsh B. Bhakta edited this page Aug 16, 2021 · 3 revisions

Why additional work?

When png flags are packed with library, it increases library size and eventually it increases your project size (even for project that does not want to use those flags). To avoid this, Country Picker library packs only text based Emoji flags by default. You can change flags by providing a FlagPack. This FlagPack can be a custom one OR one of the library provided FlagPacks.

Add library provided flag packs

  1. Choose which FlagPack you would like to use. As of now, library provides following flag packs.
  • a. FlagPack1
    • implementation("com.hbb20:android-country-picker-flagpack1:X.Y.Z")
    • Add
    • image
Clone this wiki locally