thanks, @Eddy i have not made my point clear , sorry !
my scenario is , i will fetch data from some web service , one item of the data set is , possible means of traveling , maybe anyone of train/plane/bus/ship/foot/bike…, i need to display this field as icon on my app , i know i can store it in a dict (array), transportation name as key and icon unicode as value , when i fetched the data from web service , i loop through the dict , find corresponding icon unicode and assign it to TEXT property of my xml Label .
i am guessing the better way might be , i pre-define all possible icon types as css classes , so when i got the data , i need no looping the dict , just assign the pre-defined css class name to Label’s class property , it is more efficient ? this is why i am asking ~
am i thinking right ?
thanks again !