Class WeatherWarningAdapter
BaseAdapter
de.kaffeemitkoffein.tinyweatherforecastgermany.WeatherWarningAdapter
public class WeatherWarningAdapter extends BaseAdapter
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWeatherWarningAdapter(Context context, ArrayList<WeatherWarning> weatherWarnings, Executor executor) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatTime(long time) intgetCount()getItem(int i) longgetItemId(int i) ViewgetView(int i, View view, ViewGroup viewGroup) voidsetLocalWarnings(ArrayList<WeatherWarning> localWarnings) static ViewsetWarningViewElements(Context context, LayoutInflater layoutInflater, View view, ViewGroup viewGroup, WeatherWarning warning, boolean highlight, Handler mainHandler, Executor executor)
-
Constructor Details
-
WeatherWarningAdapter
public WeatherWarningAdapter(Context context, ArrayList<WeatherWarning> weatherWarnings, Executor executor)
-
-
Method Details
-
setLocalWarnings
-
formatTime
-
getCount
public int getCount() -
getItem
-
getItemId
public long getItemId(int i) -
getView
public View getView(int i, View view, ViewGroup viewGroup) -
setWarningViewElements
public static View setWarningViewElements(Context context, LayoutInflater layoutInflater, View view, ViewGroup viewGroup, WeatherWarning warning, boolean highlight, Handler mainHandler, Executor executor)
-