Skip to content
Snippets Groups Projects
Commit c62e8682 authored by diegval's avatar diegval
Browse files

Feature: Añadido layout taberna

parent d0bbbb5a
No related branches found
No related tags found
2 merge requests!65Feature:,!45Ciudad
app/src/main/res/drawable-nodpi/background_taberna.png

255 KiB

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:angle="90"
android:startColor="#E1AA7A"
android:endColor="#ffb16c"
android:type="linear" />
<corners android:radius="30dp"/>
</shape>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/pintiaBackground"
tools:context=".exploradoresDePintia.ExploradoresDePintia"
tools:ignore="HardcodedText, UseCompoundDrawables">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="Taberna"
android:src="@drawable/background_taberna"
android:scaleType="centerCrop" />
<ImageView
android:id="@+id/tituloJuego"
android:layout_width="wrap_content"
android:layout_height="120dp"
android:layout_centerHorizontal="true"
android:contentDescription="Titulo del minijuego"
android:src="@drawable/texto_taberna"
android:text="Exploradores de Pintia"
android:textColor="#401201"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
<TextView
android:id="@+id/nivelActual"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="18dp"
android:text="Nivel Ciudad: 1"
android:textSize="30sp"
android:fontFamily="@font/pixeled"
android:layout_below="@id/tituloJuego"
android:background="@drawable/style_texto_border"
android:textColor="@color/pintiaTitleText"
android:textStyle="bold"
android:layout_centerHorizontal="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tituloJuego"/>
<TextView
android:id="@+id/textoNivelActual"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="20dp"
android:layout_marginStart="20dp"
android:textAlignment="center"
android:padding="18dp"
android:text="La taberna es el centro de reunión de los vacceos, un lugar donde la comunidad comparte historias, celebra y toma decisiones clave. Este edificio no solo refuerza los lazos sociales, sino que, al mejorarlo, aumenta el nivel de la villa y otorga ventajas estratégicas en el desarrollo del resto de los edificios."
android:textSize="16sp"
android:fontFamily="@font/pixeled"
android:layout_below="@id/tituloJuego"
android:background="@drawable/style_texto_border"
android:textColor="@color/pintiaTitleText"
android:textStyle="bold"
android:layout_marginTop="80dp"
android:layout_centerHorizontal="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/nivelActual"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/style_confirmar_gradiente"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:layout_marginBottom="45dp"
android:layout_marginTop="80dp"
app:layout_constraintBottom_toTopOf="@id/bottom_navigation"
>
<Button
android:id="@+id/botonMejorar"
android:layout_width="350dp"
android:layout_height="wrap_content"
android:padding="18dp"
android:text="Mejorar"
android:textColor="@color/pintiaTitleText"
android:textSize="30sp"
android:background="@android:color/transparent"
android:fontFamily="@font/pixeled"
android:textStyle="bold"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/bottom_navigation"
style="?android:attr/buttonBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/style_background_gradiente"
android:orientation="horizontal"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="parent">
<ImageButton
android:id="@+id/leaderboardButton"
android:layout_width="0dp"
android:layout_height="60dp"
android:layout_weight="1"
android:background="?attr/selectableItemBackground"
android:src="@drawable/icon_leaderboard"
android:contentDescription="Abre el mapa"
android:padding="5dp"
android:scaleType="fitCenter" />
<ImageButton
android:id="@+id/mapButton"
android:layout_width="0dp"
android:layout_height="60dp"
android:layout_weight="1"
android:background="?attr/selectableItemBackground"
android:src="@drawable/icon_map"
android:contentDescription="Abre el ranking"
android:layout_marginEnd="40dp"
android:layout_marginStart="40dp"
android:scaleType="fitCenter" />
<ImageButton
android:id="@+id/shopButton"
android:layout_width="0dp"
android:layout_height="60dp"
android:layout_weight="1"
android:background="?attr/selectableItemBackground"
android:src="@drawable/icon_shop"
android:contentDescription="Abre la tienda"
android:padding="5dp"
android:scaleType="fitCenter" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
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