activity_main.xml 2.54 KB
Newer Older
Miguel Do Carmo committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
<?xml version="1.0" encoding="utf-8"?>
<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:padding="20dp"
    android:background="@color/colorBackgroundPersonalizado"
    tools:context=".MainActivity">

    <androidx.viewpager.widget.ViewPager
        android:id="@+id/vistaPaginas"
        android:layout_width="0dp"
        android:outlineSpotShadowColor="@color/colorPrimaryDark"
        android:layout_height="0dp"
        android:layout_marginBottom="10dp"
        android:elevation="10dp"
        android:padding="20dp"
        app:layout_constraintBottom_toTopOf="@id/layoutIndicadores"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <LinearLayout
        android:id="@+id/layoutIndicadores"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal"
        android:layout_marginBottom="10dp"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintBottom_toTopOf="@id/accederLogin">

        <ImageView
            android:id="@+id/indicator1"
            android:layout_width="@dimen/indicadores"
            android:layout_height="@dimen/indicadores"
            android:contentDescription="@string/app_name"
            android:src="@drawable/ic_pantalla_activa"/>
        <Space
            android:layout_width="5dp"
            android:layout_height="match_parent"/>
        <ImageView
            android:id="@+id/indicator2"
            android:layout_width="@dimen/indicadores"
            android:layout_height="@dimen/indicadores"
            android:contentDescription="@string/app_name"
            android:src="@drawable/ic_pantalla_inactiva"/>
    </LinearLayout>
    <Button
        android:id="@+id/accederLogin"
        android:text="Acceder"
        android:fontFamily="@font/bentonbook"
        android:textColor="#FFFFFF"
        android:textAllCaps="false"
        android:background="@color/colorBoton"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="10dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>