package com.example.fleche;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ImageView FlecheImg = (ImageView) findViewById(R.id.flecheImg);
        Button btnFlecheG = (Button) findViewById(R.id.flecheGauche);
        Button btnFlecheD = (Button) findViewById(R.id.flecheDroite);
        FlecheListener listener = new FlecheListener(FlecheImg,btnFlecheG,btnFlecheD);
        btnFlecheG.setOnClickListener(listener);
        btnFlecheD.setOnClickListener(listener);
    }
}