Skip to content

Commit

Permalink
Edits Readme
Browse files Browse the repository at this point in the history
Limits the line of comments
  • Loading branch information
blongho authored Feb 27, 2019
1 parent 1511e32 commit 1ef18d9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ CountryFlag.getInstance(getApplicationContext());
```

5. Get the flag of a country using

```
// Demonstrating with Sweden
/* You can get the flag of a country by using the two iso alpha2 or alpha3 or the country name. The attribute is case-insensitive "se == SE == sE == Se"
This gives you a result
*/
//You can get the flag of a country by using the two iso alpha2 or alpha3 or the country name.
//The attribute is case-insensitive "se == SE == sE == Se"
final int flag = CountryFlag.of("se"); // use "se" or "sE" or "SE" or "Se"
// or
final int flag = CountryFlag.of("swe"); // or
//
final int flag = CountryFlag.of("swe");
// or
final int flag = CountryFlag.of("sweden");
// Set the image of an imageView
Expand All @@ -46,6 +47,7 @@ flagOfGermany.setImageResource(CountryFlag.of("Germany"));
OR
- a demo flag of the globe (This provides a fall-back and help your app not crash due to nullPointerException)
```

NB: As of writing, the flags of
- Antartica
- Svalbard and Jan Mayen
Expand Down

0 comments on commit 1ef18d9

Please sign in to comment.