Class ForecastAdapter


  • public class ForecastAdapter
    extends BaseAdapter
    • Method Detail

      • setWarnings

        public void setWarnings​(java.util.ArrayList<WeatherWarning> warnings)
      • getWarnings

        public java.util.ArrayList<WeatherWarning> getWarnings()
      • clearBitmapCache

        public void clearBitmapCache()
      • 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)
      • formatDistanceNumberToString

        public static java.lang.String formatDistanceNumberToString​(double d)
      • getVisibilityCharSequence

        public static java.lang.CharSequence getVisibilityCharSequence​(Weather.WeatherInfo weatherInfo,
                                                                       int display_distance_unit)
      • getVisibilityBelow1kmCharSequence

        public static java.lang.CharSequence getVisibilityBelow1kmCharSequence​(Weather.WeatherInfo weatherInfo)
      • getVisibilityString

        public static java.lang.CharSequence getVisibilityString​(Weather.WeatherInfo weatherInfo,
                                                                 int display_distance_unit)
      • DPtoPX

        public static float DPtoPX​(int dp,
                                   DisplayMetrics displayMetrics)
      • getDMax

        public float getDMax​(float value)
      • SPtoDP

        public float SPtoDP​(float value)
      • determineExpectedPixelHeightOfForecastElement

        public int determineExpectedPixelHeightOfForecastElement()
      • determineExpectedPixelHeightOfForecastElementOld

        public int determineExpectedPixelHeightOfForecastElementOld()
      • calculateInSampleSize

        public static int calculateInSampleSize​(BitmapFactory.Options options,
                                                int widthRequired,
                                                int heightRequired)
      • calculateInSampleSize

        public static int calculateInSampleSize​(BitmapFactory.Options options,
                                                ImageView imageView)