Created
May 22, 2015 22:51
-
-
Save haristhohir/cda6454ab90e6b992744 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
int viewType = getItemViewType(cursor.getPosition()); | |
switch (viewType) { | |
case VIEW_TYPE_TODAY: { | |
// Get weather icon | |
viewHolder.iconView.setImageResource(Utility.getArtResourceForWeatherCondition( | |
cursor.getInt(ForecastFragment.COL_WEATHER_CONDITION_ID))); | |
break; | |
} | |
case VIEW_TYPE_FUTURE_DAY: { | |
// Get weather icon | |
viewHolder.iconView.setImageResource(Utility.getIconResourceForWeatherCondition( | |
cursor.getInt(ForecastFragment.COL_WEATHER_CONDITION_ID))); | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment