package com.bonait.bnframework.modules.home.fragment.mode;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.bonait.bnframework.R;

/**
 * Tab-控件
 */
public class tab_control extends LinearLayout {
    TextView name;
    private View root;

    public tab_control(Context context, @Nullable AttributeSet attrs, String _name) {
        super(context, attrs);
        root= LayoutInflater.from(context).inflate(R.layout.tab_item, this);
        name=this.findViewById(R.id.name);
        name.setText(_name+"");
    }
}