package com.example.aason.disanzhoumoni.view;
import android.content.Context;
import android.content.Intent;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import com.example.aason.disanzhoumoni.R;
public class MyView extends LinearLayout {
private Button btn,btn2;
private EditText edit_text;
public MyView(Context context) {
super(context,null);
}
public MyView(Context context,AttributeSet attrs) {
super(context, attrs);
LayoutInflater.from(context).inflate(R.layout.myview,this);
btn = findViewById(R.id.btn);
btn2 = findViewById(R.id.btn2);
edit_text =findViewById(R.id.edit_text);
}
}