Skip to content
Snippets Groups Projects
Commit 788d909f authored by victor's avatar victor
Browse files

Feature:

añadir a la lista el minijuego4
parent 6f88a95b
No related branches found
No related tags found
1 merge request!65Feature:
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<project version="4"> <project version="4">
<component name="deploymentTargetSelector"> <component name="deploymentTargetSelector">
<selectionStates> <selectionStates>
<SelectionState runConfigName="MainActivity"> <SelectionState runConfigName="app">
<option name="selectionMode" value="DROPDOWN" /> <option name="selectionMode" value="DROPDOWN" />
</SelectionState> </SelectionState>
</selectionStates> </selectionStates>
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
<activity android:name=".exploradoresDePintia.Resumen" android:exported="true"/> <activity android:name=".exploradoresDePintia.Resumen" android:exported="true"/>
<activity android:name=".TabernaActivity" android:exported="true"/> <activity android:name=".TabernaActivity" android:exported="true"/>
<activity android:name=".TiendaActivity" android:exported="true"/> <activity android:name=".TiendaActivity" android:exported="true"/>
<activity android:name=".minijuego4.Minijuego4" android:exported="true"/>
</application> </application>
</manifest> </manifest>
\ No newline at end of file
...@@ -7,6 +7,7 @@ import androidx.appcompat.app.AppCompatActivity ...@@ -7,6 +7,7 @@ import androidx.appcompat.app.AppCompatActivity
import com.example.ellegadodepintia.minijuego1.InicioMinijuego1 import com.example.ellegadodepintia.minijuego1.InicioMinijuego1
import com.example.ellegadodepintia.minijuego2.Minijuego2 import com.example.ellegadodepintia.minijuego2.Minijuego2
import com.example.ellegadodepintia.minijuego3.Minijuego3 import com.example.ellegadodepintia.minijuego3.Minijuego3
import com.example.ellegadodepintia.minijuego4.Minijuego4
import com.example.ellegadodepintia.minijuegoInvestigacion.MinijuegoInvestigar import com.example.ellegadodepintia.minijuegoInvestigacion.MinijuegoInvestigar
import com.example.ellegadodepintia.ruleta.Ruleta import com.example.ellegadodepintia.ruleta.Ruleta
import com.example.ellegadodepintia.minijuegoReparacion.MinijuegoReparacion import com.example.ellegadodepintia.minijuegoReparacion.MinijuegoReparacion
...@@ -38,6 +39,7 @@ class ListaMinijuegos : AppCompatActivity(){ ...@@ -38,6 +39,7 @@ class ListaMinijuegos : AppCompatActivity(){
val intent = Intent(this, Minijuego3::class.java) val intent = Intent(this, Minijuego3::class.java)
startActivity(intent) startActivity(intent)
} }
// Minijuego Investigar // Minijuego Investigar
val minijuegoInvestigarLayout = findViewById<FrameLayout>(R.id.minijuegoInvestigar) val minijuegoInvestigarLayout = findViewById<FrameLayout>(R.id.minijuegoInvestigar)
minijuegoInvestigarLayout.setOnClickListener { minijuegoInvestigarLayout.setOnClickListener {
...@@ -60,5 +62,12 @@ class ListaMinijuegos : AppCompatActivity(){ ...@@ -60,5 +62,12 @@ class ListaMinijuegos : AppCompatActivity(){
intent.putExtra("FLAG_KEY", flag) intent.putExtra("FLAG_KEY", flag)
startActivity(intent) startActivity(intent)
} }
// Minijuego 4
val minijuego4Layout = findViewById<FrameLayout>(R.id.minijuego4)
minijuego4Layout.setOnClickListener {
val intent = Intent(this, Minijuego4::class.java)
startActivity(intent)
}
} }
} }
\ No newline at end of file
package com.example.ellegadodepintia.minijuego4
import androidx.appcompat.app.AppCompatActivity
class Minijuego4 : AppCompatActivity(){
}
\ No newline at end of file
app/src/main/res/drawable/asi_minijuego_4_tablero.png

245 KiB

app/src/main/res/drawable/texto_lista_raya.png

63.2 KiB

...@@ -189,5 +189,34 @@ ...@@ -189,5 +189,34 @@
android:src="@drawable/texto_lista_reparar" /> android:src="@drawable/texto_lista_reparar" />
</LinearLayout> </LinearLayout>
</FrameLayout> </FrameLayout>
<!-- Minijuego 3 raya -->
<FrameLayout
android:id="@+id/minijuego4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp"
android:layout_marginBottom="8dp">
<!-- Contenido (imagen y título) -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical">
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/asi_minijuego_4_tablero"
android:contentDescription="Imagen de tablero" />
<ImageView
android:layout_width="15dp"
android:layout_height="80dp"
android:layout_weight="1"
android:contentDescription="Título de 3 raya"
android:src="@drawable/texto_lista_raya" />
</LinearLayout>
</FrameLayout>
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment