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 class
WeatherWarningAdapter.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.String
formatTime(long time)
int
getCount()
java.lang.Object
getItem(int i)
long
getItemId(int i)
View
getView(int i, View view, ViewGroup viewGroup)
void
setLocalWarnings(java.util.ArrayList<WeatherWarning> localWarnings)
static View
setWarningViewElements(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)
-
-