mirror of
https://github.com/cmclark00/mintris.git
synced 2025-05-18 09:05:20 +01:00
Update game layout and functionality in MainActivity and GameView
This commit is contained in:
parent
b481fb4e80
commit
86424eac32
3 changed files with 63 additions and 111 deletions
|
@ -8,16 +8,24 @@
|
|||
android:fitsSystemWindows="true"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<!-- Full Screen Touch Interceptor -->
|
||||
<View
|
||||
android:id="@+id/touchInterceptor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clickable="true"
|
||||
android:focusable="true" />
|
||||
|
||||
<!-- Game Container with Glow - Centered -->
|
||||
<FrameLayout
|
||||
android:id="@+id/gameContainer"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_margin="12dp"
|
||||
android:layout_margin="0dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintDimensionRatio="1:2"
|
||||
app:layout_constraintEnd_toStartOf="@+id/rightControlsPanel"
|
||||
app:layout_constraintStart_toEndOf="@+id/leftControlsPanel"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<com.mintris.game.GameView
|
||||
|
@ -30,10 +38,12 @@
|
|||
android:id="@+id/glowBorder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/glow_border" />
|
||||
android:background="@drawable/glow_border"
|
||||
android:clickable="false"
|
||||
android:focusable="false" />
|
||||
</FrameLayout>
|
||||
|
||||
<!-- Left Side Controls Panel -->
|
||||
<!-- Left Side Controls Panel - Overlay -->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/leftControlsPanel"
|
||||
android:layout_width="0dp"
|
||||
|
@ -42,7 +52,10 @@
|
|||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintWidth_percent="0.25">
|
||||
app:layout_constraintWidth_percent="0.25"
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
android:elevation="1dp">
|
||||
|
||||
<!-- Hold Piece View -->
|
||||
<TextView
|
||||
|
@ -83,7 +96,7 @@
|
|||
android:layout_marginBottom="24dp" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- Right Side Controls Panel -->
|
||||
<!-- Right Side Controls Panel - Overlay -->
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/rightControlsPanel"
|
||||
android:layout_width="0dp"
|
||||
|
@ -92,7 +105,10 @@
|
|||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintWidth_percent="0.25">
|
||||
app:layout_constraintWidth_percent="0.25"
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
android:elevation="1dp">
|
||||
|
||||
<!-- Next Piece Preview -->
|
||||
<TextView
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue