fleche fini

This commit is contained in:
Simon SAYE BABU 2024-02-08 15:15:22 +01:00
parent de69e1d700
commit 54d5472df8
5 changed files with 10 additions and 8 deletions

View File

@ -4,8 +4,9 @@
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="GRADLE" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
<option name="gradleJvm" value="Embedded JDK" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

View File

@ -11,11 +11,11 @@ public class FlecheListener implements View.OnClickListener {
private ImageView imgFleche;
private Button ButtonG;
private Button ButtonD;
FlecheListener(ImageView img, Button bg, Button bd) {
FlecheListener(ImageView img, Button left, Button right) {
super();
this.imgFleche = img;
this.ButtonG = bg;
this.ButtonD = bd;
this.ButtonG = left;
this.ButtonD = right;
}
@Override

View File

@ -17,5 +17,6 @@ public class MainActivity extends AppCompatActivity {
Button btnFlecheG = (Button) findViewById(R.id.flecheGauche);
Button btnFlecheD = (Button) findViewById(R.id.flecheDroite);
btnFlecheG.setOnClickListener(new FlecheListener(FlecheImg,btnFlecheG,btnFlecheD));
btnFlecheD.setOnClickListener(new FlecheListener(FlecheImg,btnFlecheG,btnFlecheD));
}
}

View File

@ -19,14 +19,14 @@
android:layout_height="wrap_content"
android:layout_below="@id/flecheImg"
android:layout_toStartOf="@+id/filler"
android:text="←"></Button>
android:text="←" />
<TextView
android:id="@+id/filler"
android:layout_width="80dp"
android:layout_height="45dp"
android:layout_below="@id/flecheImg"
android:layout_centerHorizontal="true"></TextView>
android:layout_centerHorizontal="true" />
<Button
android:id="@+id/flecheDroite"
@ -34,7 +34,7 @@
android:layout_height="wrap_content"
android:layout_below="@id/flecheImg"
android:layout_toEndOf="@+id/filler"
android:text="→"></Button>
android:text="→" />
</RelativeLayout>