Skip to content
Snippets Groups Projects
Commit 55491b1d authored by izajime's avatar izajime
Browse files

Feature: El boton de la taberna te lleva a su actividad

parent c62e8682
Branches
No related tags found
2 merge requests!65Feature:,!45Ciudad
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
<activity android:name=".ruleta.Ruleta" android:exported="true"/> <activity android:name=".ruleta.Ruleta" android:exported="true"/>
<activity android:name=".minijuegoReparacion.MinijuegoReparacion" android:exported="true"/> <activity android:name=".minijuegoReparacion.MinijuegoReparacion" android:exported="true"/>
<activity android:name=".exploradoresDePintia.Resumen" android:exported="true"/> <activity android:name=".exploradoresDePintia.Resumen" android:exported="true"/>
<activity android:name=".TabernaActivity" android:exported="true"/>
</application> </application>
</manifest> </manifest>
\ No newline at end of file
...@@ -31,10 +31,16 @@ class MapActivity : AppCompatActivity() { ...@@ -31,10 +31,16 @@ class MapActivity : AppCompatActivity() {
leaderboardButton.setBackgroundColor(Color.TRANSPARENT) leaderboardButton.setBackgroundColor(Color.TRANSPARENT)
shopButton.setBackgroundColor(Color.TRANSPARENT) shopButton.setBackgroundColor(Color.TRANSPARENT)
val minijuego4Button = findViewById<ImageButton>(R.id.minijuego4) val aventura = findViewById<ImageButton>(R.id.botonAventura)
minijuego4Button.setOnClickListener { aventura.setOnClickListener {
val intent = Intent(this, ExploradoresDePintia::class.java) val intent = Intent(this, ExploradoresDePintia::class.java)
startActivity(intent) startActivity(intent)
} }
val taberna = findViewById<ImageButton>(R.id.botonTaberna)
taberna.setOnClickListener {
val intent = Intent(this, TabernaActivity::class.java)
startActivity(intent)
}
} }
} }
package com.example.ellegadodepintia
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
class TabernaActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_taberna)
}
}
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
android:src="@drawable/background_ciudad" /> android:src="@drawable/background_ciudad" />
<ImageButton <ImageButton
android:id="@+id/minijuego4" android:id="@+id/botonAventura"
style="?android:attr/buttonBarButtonStyle" style="?android:attr/buttonBarButtonStyle"
android:layout_width="199dp" android:layout_width="199dp"
android:layout_height="140dp" android:layout_height="140dp"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment