Created
January 15, 2016 18:02
-
-
Save wviana/ed66e20676b6c25499ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package neocom.dealerbook.model.loja; | |
import neocom.dealerbook.R; | |
/** | |
* Created by wviana on 19/06/15. | |
*/ | |
public class LojaDrawbleSupport { | |
public static int getLogoDrawble(String bandeira) { | |
int pin; | |
switch (bandeira) { | |
case "AUDI”: | |
pin = R.drawable.logo_audi; | |
break; | |
case "BMW": | |
pin = R.drawable.logo_bmw; | |
break; | |
case "CHERY": | |
pin = R.drawable.logo_chery; | |
break; | |
case "CHRYSLER": | |
pin = R.drawable.logo_chrysler; | |
break; | |
case "CITROEN": | |
pin = R.drawable.logo_citroen; | |
break; | |
case "DODGE": | |
pin = R.drawable.logo_dodge; | |
break; | |
case "FIAT": | |
pin = R.drawable.logo_fiat; | |
break; | |
case "FORD": | |
pin = R.drawable.logo_ford; | |
break; | |
case "GM": | |
pin = R.drawable.logo_gm; | |
break; | |
case "HMB": | |
pin = R.drawable.logo_hmb; | |
break; | |
case "HONDA": | |
pin = R.drawable.logo_honda; | |
break; | |
case "HYUNDAI": | |
pin = R.drawable.logo_hyundai; | |
break; | |
case "JAC": | |
pin = R.drawable.logo_jac; | |
break; | |
case "JEEP": | |
pin = R.drawable.logo_jeep; | |
break; | |
case "KIA": | |
pin = R.drawable.logo_kia; | |
break; | |
case "LAND ROVER": | |
pin = R.drawable.logo_land_rover; | |
break; | |
case "LEXUS": | |
pin = R.drawable.logo_lexus; | |
break; | |
case "LIFAN": | |
pin = R.drawable.logo_lifan; | |
break; | |
case "MERCEDES": | |
pin = R.drawable.logo_mercedes; | |
break; | |
case "MINI": | |
pin = R.drawable.logo_mini; | |
break; | |
case "MITSUBISHI": | |
pin = R.drawable.logo_mitsubishi; | |
break; | |
case "NISSAN": | |
pin = R.drawable.logo_nissan; | |
break; | |
case "PEUGEOT": | |
pin = R.drawable.logo_peugeot; | |
break; | |
case "RENAULT": | |
pin = R.drawable.logo_renault; | |
break; | |
case "SUBARU": | |
pin = R.drawable.logo_subaru; | |
break; | |
case "SUZUKI": | |
pin = R.drawable.logo_suzuki; | |
break; | |
case "TOYOTA": | |
pin = R.drawable.logo_toyota; | |
break; | |
case "VOLVO": | |
pin = R.drawable.logo_volvo; | |
break; | |
case "VW": | |
pin = R.drawable.logo_vw; | |
break; | |
} | |
return pin; | |
} | |
public static int getPinDrawble(String bandeira) { | |
int pin = R.drawable.no_data_flag; | |
switch (bandeira) { | |
case "AUDI": | |
pin = R.drawable.pin_audi_concessionaria_completa; | |
break; | |
case "BMW": | |
pin = R.drawable.pin_bmw_concessionaria_completa; | |
break; | |
case "CHERY": | |
pin = R.drawable.pin_chery_concessionaria_completa; | |
break; | |
case "CHRYSLER": | |
pin = R.drawable.pin_chrysler_concessionaria_completa; | |
break; | |
case "CITROEN": | |
pin = R.drawable.pin_citroen_concessionaria_completa; | |
break; | |
case "DODGE": | |
pin = R.drawable.pin_dodge_concessionaria_completa; | |
break; | |
case "FIAT": | |
pin = R.drawable.pin_fiat_concessionaria_completa; | |
break; | |
case "FORD": | |
pin = R.drawable.pin_ford_concessionaria_completa; | |
break; | |
case "GM": | |
pin = R.drawable.pin_gm_concessionaria_completa; | |
break; | |
case "HMB": | |
pin = R.drawable.pin_hmb_concessionaria_completa; | |
break; | |
case "HONDA": | |
pin = R.drawable.pin_honda_concessionaria_completa; | |
break; | |
case "HYUNDAI": | |
pin = R.drawable.pin_hyundai_concessionaria_completa; | |
break; | |
case "JAC": | |
pin = R.drawable.pin_jac_concessionaria_completa; | |
break; | |
case "JEEP": | |
pin = R.drawable.pin_jeep_concessionaria_completa; | |
break; | |
case "KIA": | |
pin = R.drawable.pin_kia_concessionaria_completa; | |
break; | |
case "LAND ROVER": | |
pin = R.drawable.pin_land_rover_concessionaria_completa; | |
break; | |
case "LEXUS": | |
pin = R.drawable.pin_lexus_concessionaria_completa; | |
break; | |
case "LIFAN": | |
pin = R.drawable.pin_lifan_concessionaria_completa; | |
break; | |
case "MERCEDES": | |
pin = R.drawable.pin_mercedes_concessionaria_completa; | |
break; | |
case "MINI": | |
pin = R.drawable.pin_mini_concessionaria_completa; | |
break; | |
case "MITSUBISHI": | |
pin = R.drawable.pin_mitsubishi_concessionaria_completa; | |
break; | |
case "NISSAN": | |
pin = R.drawable.pin_nissan_concessionaria_completa; | |
break; | |
case "PEUGEOT": | |
pin = R.drawable.pin_peugeot_concessionaria_completa; | |
break; | |
case "RENAULT": | |
pin = R.drawable.pin_renault_concessionaria_completa; | |
break; | |
case "SUBARU": | |
pin = R.drawable.pin_subaru_concessionaria_completa; | |
break; | |
case "SUZUKI": | |
pin = R.drawable.pin_suzuki_concessionaria_completa; | |
break; | |
case "TOYOTA": | |
pin = R.drawable.pin_toyota_concessionaria_completa; | |
break; | |
case "VOLVO": | |
pin = R.drawable.pin_volvo_concessionaria_completa; | |
break; | |
case "VW": | |
pin = R.drawable.pin_vw_concessionaria_completa; | |
break; | |
} | |
return pin; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment