Delete home.java
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
package com.ShanMukhaInnovations.ArrestTB;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
|
||||
public class home extends Navigation_Top {
|
||||
private Button add_patient,about;
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
LayoutInflater inflater = (LayoutInflater) this
|
||||
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||
View contentView = inflater.inflate(R.layout.activity_home, null, false);
|
||||
draw.addView(contentView, 0);
|
||||
add_patient=findViewById(R.id.register_user);
|
||||
about=findViewById(R.id.aboutus);
|
||||
add_patient.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent=new Intent (home.this,Patient_detail.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
about.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent=new Intent (home.this,About.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//setContentView(R.layout.activity_home);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user