Class WeatherWarningAdapter
- java.lang.Object
-
- BaseAdapter
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.WeatherWarningAdapter
-
public class WeatherWarningAdapter extends BaseAdapter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWeatherWarningAdapter.ViewHolder
-
Constructor Summary
Constructors Constructor Description WeatherWarningAdapter(Context context, java.util.ArrayList<WeatherWarning> weatherWarnings, java.util.concurrent.Executor executor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringformatTime(long time)intgetCount()java.lang.ObjectgetItem(int i)longgetItemId(int i)ViewgetView(int i, View view, ViewGroup viewGroup)voidsetLocalWarnings(java.util.ArrayList<WeatherWarning> localWarnings)static ViewsetWarningViewElements(Context context, LayoutInflater layoutInflater, View view, ViewGroup viewGroup, WeatherWarning warning, boolean highlight, Handler mainHandler, java.util.concurrent.Executor executor)
-
-
-
Constructor Detail
-
WeatherWarningAdapter
public WeatherWarningAdapter(Context context, java.util.ArrayList<WeatherWarning> weatherWarnings, java.util.concurrent.Executor executor)
-
-
Method Detail
-
setLocalWarnings
public void setLocalWarnings(java.util.ArrayList<WeatherWarning> localWarnings)
-
formatTime
public static java.lang.String formatTime(long time)
-
getCount
public int getCount()
-
getItem
public java.lang.Object getItem(int i)
-
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, java.util.concurrent.Executor executor)
-
-