package com.mytatvarnsdk.myView;

import android.app.Activity;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;

import com.mytatvarnsdk.R;


public class HistoryItem extends ConstraintLayout {
    private TextView glutitle;
    private TextView gluValue;
    private TextView gluunit;
    private TextView gluTime;
    private TextView gluCompareInfo;
    private ImageView line;

    private TextView titleReference;
    private TextView valueReference;

    private Activity context;

    public HistoryItem(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        this.context = (Activity) context;
        View view = LayoutInflater.from(context).inflate(R.layout.history_item, this);
        glutitle = view.findViewById(R.id.history_24_title);
        gluValue = view.findViewById(R.id.history_24_value);
        gluCompareInfo = view.findViewById(R.id.history_24_avg_compare);
        gluunit = view.findViewById(R.id.history_24_unit);
        gluTime = view.findViewById(R.id.history_24_time);
        line = view.findViewById(R.id.history_line);
        titleReference = view.findViewById(R.id.history_24_title_reference);
        valueReference = view.findViewById(R.id.history_24_avg_compare_reference);
    }

}
