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