package com.example.tyre;


import android.content.Intent;
import android.os.Bundle;
import android.widget.RadioButton;

import androidx.appcompat.app.AppCompatActivity;
import com.example.tyre.databinding.ActivityTyreLoadUnLoadBinding;

public class TyreLoadUnLoadActivity extends AppCompatActivity {

    private ActivityTyreLoadUnLoadBinding binding;

    RadioButton up;
    RadioButton down;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityTyreLoadUnLoadBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        bindViews();
        setupClickListeners();
    }

    private void bindViews() {
        up = binding.up;
        down = binding.down;
    }

    private void setupClickListeners() {
        binding.up.setOnClickListener(v -> {
            Intent intent = new Intent(this, UpActivity.class);
            startActivity(intent);
        });

        binding.down.setOnClickListener(v -> {
            Intent intent = new Intent(this, DownActivity.class);
            startActivity(intent);
        });

        binding.back.setOnClickListener(v -> {
            Intent intent = new Intent(this, HomePageActivity.class);
            startActivity(intent);
        });
    }
}
