package com.example.eketha; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.LinearLayout; public class growthHome extends AppCompatActivity { private LinearLayout layer1, layer2; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_growth_home); layer1 = findViewById(R.id.layer2); //layer2 = findViewById(R.id.layer3); layer1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(getApplicationContext(),Growth.class); startActivity(intent); } }); // layer2.setOnClickListener(new View.OnClickListener() { // @Override // public void onClick(View view) { // Intent intent = new Intent(getApplicationContext(),Fertilizer.class); // startActivity(intent); // } // }); } }