package com.example.listview; public enum SimpleEvent { CAPOT_OUVERT("Capot ouvert"), CAPOT_FERMEE("Capot fermé"), MONTEE_ON("Moteur actionné"), MONTEE_OFF("Moteur éteind"), ALERTE_TEMPERATURE("Température trop élevée"), ALERTE_PRESSION("Pression trop basse"); private String description; private SimpleEvent(String txt){ description=txt; } public String toString(){ return(description); } }