fleche fini
This commit is contained in:
parent
de69e1d700
commit
54d5472df8
@ -4,8 +4,9 @@
|
|||||||
<component name="GradleSettings">
|
<component name="GradleSettings">
|
||||||
<option name="linkedExternalProjectsSettings">
|
<option name="linkedExternalProjectsSettings">
|
||||||
<GradleProjectSettings>
|
<GradleProjectSettings>
|
||||||
|
<option name="testRunner" value="GRADLE" />
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||||
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
<option name="gradleJvm" value="Embedded JDK" />
|
||||||
<option name="modules">
|
<option name="modules">
|
||||||
<set>
|
<set>
|
||||||
<option value="$PROJECT_DIR$" />
|
<option value="$PROJECT_DIR$" />
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
<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" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
@ -11,11 +11,11 @@ public class FlecheListener implements View.OnClickListener {
|
|||||||
private ImageView imgFleche;
|
private ImageView imgFleche;
|
||||||
private Button ButtonG;
|
private Button ButtonG;
|
||||||
private Button ButtonD;
|
private Button ButtonD;
|
||||||
FlecheListener(ImageView img, Button bg, Button bd) {
|
FlecheListener(ImageView img, Button left, Button right) {
|
||||||
super();
|
super();
|
||||||
this.imgFleche = img;
|
this.imgFleche = img;
|
||||||
this.ButtonG = bg;
|
this.ButtonG = left;
|
||||||
this.ButtonD = bd;
|
this.ButtonD = right;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -17,5 +17,6 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
Button btnFlecheG = (Button) findViewById(R.id.flecheGauche);
|
Button btnFlecheG = (Button) findViewById(R.id.flecheGauche);
|
||||||
Button btnFlecheD = (Button) findViewById(R.id.flecheDroite);
|
Button btnFlecheD = (Button) findViewById(R.id.flecheDroite);
|
||||||
btnFlecheG.setOnClickListener(new FlecheListener(FlecheImg,btnFlecheG,btnFlecheD));
|
btnFlecheG.setOnClickListener(new FlecheListener(FlecheImg,btnFlecheG,btnFlecheD));
|
||||||
|
btnFlecheD.setOnClickListener(new FlecheListener(FlecheImg,btnFlecheG,btnFlecheD));
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -19,14 +19,14 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@id/flecheImg"
|
android:layout_below="@id/flecheImg"
|
||||||
android:layout_toStartOf="@+id/filler"
|
android:layout_toStartOf="@+id/filler"
|
||||||
android:text="←"></Button>
|
android:text="←" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/filler"
|
android:id="@+id/filler"
|
||||||
android:layout_width="80dp"
|
android:layout_width="80dp"
|
||||||
android:layout_height="45dp"
|
android:layout_height="45dp"
|
||||||
android:layout_below="@id/flecheImg"
|
android:layout_below="@id/flecheImg"
|
||||||
android:layout_centerHorizontal="true"></TextView>
|
android:layout_centerHorizontal="true" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/flecheDroite"
|
android:id="@+id/flecheDroite"
|
||||||
@ -34,7 +34,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@id/flecheImg"
|
android:layout_below="@id/flecheImg"
|
||||||
android:layout_toEndOf="@+id/filler"
|
android:layout_toEndOf="@+id/filler"
|
||||||
android:text="→"></Button>
|
android:text="→" />
|
||||||
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
Loading…
Reference in New Issue
Block a user