parent
c36a6578e9
commit
8479d273d4
@ -0,0 +1,15 @@
|
|||||||
|
package activity
|
||||||
|
|
||||||
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
|
import android.os.Bundle
|
||||||
|
import but.androidstudio.tetris.R
|
||||||
|
|
||||||
|
class Game : AppCompatActivity() {
|
||||||
|
|
||||||
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
|
super.onCreate(savedInstanceState)
|
||||||
|
setContentView(R.layout.activity_game)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
package modele
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint
|
||||||
|
import android.content.Context
|
||||||
|
import android.graphics.Paint
|
||||||
|
import android.graphics.Path
|
||||||
|
import android.view.View
|
||||||
|
|
||||||
|
class Draw {
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
|
||||||
|
<stroke android:width="2dp"
|
||||||
|
android:color="#A7B8A8"/>
|
||||||
|
|
||||||
|
<solid android:color="#0000FF"/>
|
||||||
|
|
||||||
|
<corners android:radius="2dp"/>
|
||||||
|
|
||||||
|
</shape>
|
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
|
||||||
|
<stroke android:width="2dp"
|
||||||
|
android:color="#A7B8A8"/>
|
||||||
|
|
||||||
|
<solid android:color="#00FFFF"/>
|
||||||
|
|
||||||
|
<corners android:radius="2dp"/>
|
||||||
|
|
||||||
|
</shape>
|
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
|
||||||
|
<stroke android:width="2dp"
|
||||||
|
android:color="#A7B8A8"/>
|
||||||
|
|
||||||
|
<solid android:color="#008A64"/>
|
||||||
|
|
||||||
|
<corners android:radius="2dp"/>
|
||||||
|
|
||||||
|
</shape>
|
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
|
||||||
|
<stroke android:width="2dp"
|
||||||
|
android:color="#A7B8A8"/>
|
||||||
|
|
||||||
|
<solid android:color="#FF8000"/>
|
||||||
|
|
||||||
|
<corners android:radius="2dp"/>
|
||||||
|
|
||||||
|
</shape>
|
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
|
||||||
|
<stroke android:width="2dp"
|
||||||
|
android:color="#A7B8A8"/>
|
||||||
|
|
||||||
|
<solid android:color="#EE82EE"/>
|
||||||
|
|
||||||
|
<corners android:radius="2dp"/>
|
||||||
|
|
||||||
|
</shape>
|
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
|
||||||
|
<stroke android:width="2dp"
|
||||||
|
android:color="#A7B8A8"/>
|
||||||
|
|
||||||
|
<solid android:color="#FF0000"/>
|
||||||
|
|
||||||
|
<corners android:radius="2dp"/>
|
||||||
|
|
||||||
|
</shape>
|
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="rectangle">
|
||||||
|
|
||||||
|
<stroke android:width="2dp"
|
||||||
|
android:color="#A7B8A8"/>
|
||||||
|
|
||||||
|
<solid android:color="#FFFF00"/>
|
||||||
|
|
||||||
|
<corners android:radius="2dp"/>
|
||||||
|
|
||||||
|
</shape>
|
@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
tools:context="activity.Game">
|
||||||
|
|
||||||
|
<GridLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:columnCount="3"
|
||||||
|
android:rowCount="3"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tilePageGame"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="TextView"
|
||||||
|
android:layout_row="0"
|
||||||
|
android:layout_column="0"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="2mm"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</GridLayout>
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in new issue