private int getFlagResource(Country country) {
        return getContext().getResources().getIdentifier("country_" + country.getIso().toLowerCase(), "drawable", getContext().getPackageName());
    }
private int getFlagResource ( Country country ) { return getContext ( ) . getResources ( ) . getIdentifier ( "country_" + country . getIso ( ) . toLowerCase ( ) , "drawable" , getContext ( ) . getPackageName ( ) ) ; }
Fetch flag resource by Country

@param country Country
@return int of resource | 0 value if not exists