package com.example.android.miniweather.app.front;

import android.media.Image;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.android.miniweather.app.R;

/**
 * Created by Ciemek on 12/03/16.
 */
public class ViewCache {

    public final LinearLayout viewGroupLinearLayout;
    public final ImageView iconImageView;
    public final TextView dateTextView, temperatureHighTextView, temperatureLowTextView, descriptionTextView;



    public ViewCache(LinearLayout linearLayout) {
        viewGroupLinearLayout = linearLayout;
        iconImageView = (ImageView) linearLayout.findViewById(R.id.list_item_icon);
        descriptionTextView = (TextView) linearLayout.findViewById(R.id.list_item_forecast_textview);
        temperatureLowTextView = (TextView) linearLayout.findViewById(R.id.list_item_temperaturelow_textview);
        temperatureHighTextView = (TextView) linearLayout.findViewById(R.id.list_item_temperaturehigh_textview);
        dateTextView = (TextView) linearLayout.findViewById(R.id.list_item_date_textview);
    }

//
//    public ViewCache() {
//        viewGroupLinearLayout = ;
//        iconImageView = (ImageView) linearLayout.findViewById(R.id.list_item_icon);
//        descriptionTextView = (TextView) linearLayout.findViewById(R.id.list_item_forecast_textview);
//        temperatureLowTextView = (TextView) linearLayout.findViewById(R.id.list_item_temperaturelow_textview);
//        temperatureHighTextView = (TextView) linearLayout.findViewById(R.id.list_item_temperaturehigh_textview);
//        dateTextView = (TextView) linearLayout.findViewById(R.id.list_item_date_textview);
//    }
}
