SettingsRecyclerHolder.java 1.49 KB
package com.lijinji.part.adapter;

import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.lijinji.part.R;

public class SettingsRecyclerHolder extends RecyclerView.ViewHolder {

    private ImageView icon;
    private TextView titleView;
    private TextView messageView;
    private LinearLayout linelayout;

    public SettingsRecyclerHolder(@NonNull View itemView) {
        super(itemView);
        icon = (ImageView) itemView.findViewById(R.id.settingIcon);
        titleView = (TextView) itemView.findViewById(R.id.settingTitle);
        messageView = (TextView) itemView.findViewById(R.id.settingMessage);
        linelayout = (LinearLayout) itemView.findViewById(R.id.settingsLinearLayout);
    }

    public ImageView getIcon() {
        return icon;
    }

    public void setIcon(ImageView icon) {
        this.icon = icon;
    }

    public TextView getTitleView() {
        return titleView;
    }

    public void setTitleView(TextView textView) {
        this.titleView = textView;
    }

    public TextView getMessageView() {
        return messageView;
    }

    public void setMessageView(TextView textView) {
        this.messageView = textView;
    }

    public LinearLayout getLinelayout() {
        return linelayout;
    }

    public void setLinelayout(LinearLayout linelayout) {
        this.linelayout = linelayout;
    }
}