69 lines
2.7 KiB
XML
69 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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:id="@+id/main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/background"
|
|
tools:context=".ui.MainActivity">
|
|
|
|
<!-- Contenedor para los fragments -->
|
|
<FrameLayout
|
|
android:id="@+id/frame_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
<!-- Toolbar personalizada -->
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="85dp"
|
|
android:background="@color/primary">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp">
|
|
|
|
<!-- Logo (izquierda) -->
|
|
<ImageView
|
|
android:id="@+id/logoImage"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"
|
|
android:src="@drawable/logo_yomitrack"
|
|
android:scaleType="fitCenter" />
|
|
|
|
<!-- Icono de perfil en la AppBar (circular) -->
|
|
<ImageView
|
|
android:id="@+id/profileIconToolbar"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:src="@drawable/ic_profile"
|
|
android:background="@drawable/circle_mask"
|
|
android:clipToOutline="true"
|
|
android:scaleType="centerCrop"
|
|
android:contentDescription="Profile" />
|
|
</RelativeLayout>
|
|
</androidx.appcompat.widget.Toolbar>
|
|
|
|
<!-- BottomNavigationView (fuera del BottomAppBar) -->
|
|
<com.google.android.material.bottomnavigation.BottomNavigationView
|
|
android:id="@+id/bottomNavigationView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:background="@color/primary"
|
|
app:itemIconSize="24dp"
|
|
app:itemIconTint="@color/textPrimary"
|
|
app:itemTextColor="@color/textPrimary"
|
|
app:labelVisibilityMode="selected"
|
|
app:menu="@menu/bottom_menu" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|