pull/3/head
Jolys Enzo 2 years ago
parent da7b834a8e
commit 6c5ca252b9

@ -11,20 +11,9 @@
android:supportsRtl="true"
android:theme="@style/Theme.Tetris"
tools:targetApi="31">
<activity android:name="tetrisGame.activity.Game"/>
<activity
android:name=".Option"
android:exported="false" />
<activity
android:name=".Menu"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Game"
android:name="tetrisGame.activity.Menu"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

@ -13,5 +13,4 @@ class Game : AppCompatActivity() {
setContentView(R.layout.activity_game)
}
}

@ -6,5 +6,28 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context="tetrisGame.activity.Game">
<tetrisGame.views.ViewsGame
android:id="@+id/tabGame"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_marginEnd="111dp"
android:layout_marginBottom="431dp"
android:background="@color/black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/TextScore"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/TextScore"
app:layout_constraintBottom_toTopOf="@+id/tabGame"
app:layout_constraintEnd_toStartOf="@+id/tabGame"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

@ -1,3 +1,4 @@
<resources>
<string name="app_name">Tetris</string>
<string name="TextScore">Score : ??</string>
</resources>
Loading…
Cancel
Save