growthHome.java 1.11 KB
Newer Older
ranthilina99's avatar
ranthilina99 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
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);
//            }
//        });
    }
}