Added a Player stats view to the GameResult

Currently only showing the stats of the winning player and also only the overall stats, has to be improved to show stats of all players and also only the stats of the match, not the overall one.
This commit is contained in:
Alexander Doerflinger
2026-02-02 14:54:06 +01:00
parent 5e627aa50c
commit 689bf2808a
6 changed files with 320 additions and 2 deletions

View File

@@ -177,10 +177,28 @@
android:visibility="gone"
tools:text="Zander"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/show_stats_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/txt_game_show_statistics"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/winner_text"
style="@style/Widget.Oche_Button_Primary"
android:visibility="gone"/>
<nl.dionsegijn.konfetti.xml.KonfettiView
android:id="@+id/konfetti_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
<com.aldo.apps.ochecompanion.ui.PlayerStatsView
android:id="@+id/player_stats_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="15dp"
android:visibility="gone"/>
</androidx.constraintlayout.widget.ConstraintLayout>