Menú inferior compartido (Inicio/Favoritos/Diario/Opciones) en las 4 pantallas. Banner AdMob encima de la barra inferior en toda la app (loadBannerAd en App.kt, AdView por código con adSize adaptativo). Opciones rediseñada con cards y acciones web/privacidad. Eliminado menú popup del header y main.xml.
156 lines
5.6 KiB
XML
156 lines
5.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Diario rediseñado (mockup SVG): header + búsqueda + filtro anime + cards con fecha -->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/bgMain"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Header -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:background="@color/bgCard"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="20dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/nav_diario"
|
|
android:textColor="@color/textPrimary"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="@color/borderColor" />
|
|
|
|
<!-- Contenido -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:paddingStart="20dp"
|
|
android:paddingEnd="20dp"
|
|
android:paddingTop="15dp">
|
|
|
|
<!-- Búsqueda -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="42dp"
|
|
android:background="@drawable/bg_search"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="12dp"
|
|
android:paddingEnd="12dp">
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:contentDescription="@null"
|
|
android:src="@drawable/ic_search"
|
|
app:tint="@color/colorTextMuted" />
|
|
|
|
<EditText
|
|
android:id="@+id/search_input"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_weight="1"
|
|
android:background="@null"
|
|
android:hint="@string/buscar_diario"
|
|
android:imeOptions="actionSearch"
|
|
android:importantForAutofill="no"
|
|
android:inputType="text"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:textColor="@color/textPrimary"
|
|
android:textColorHint="@color/colorTextMuted"
|
|
android:textSize="14sp" />
|
|
</LinearLayout>
|
|
|
|
<!-- Filtro desplegable por anime -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="44dp"
|
|
android:layout_marginTop="12dp"
|
|
android:background="@drawable/bg_card_strong"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="14dp"
|
|
android:paddingEnd="14dp">
|
|
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:contentDescription="@null"
|
|
android:src="@drawable/ic_filter"
|
|
app:tint="@color/colorTextSecondary" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:text="@string/filtrar_por_anime"
|
|
android:textColor="@color/colorTextMuted"
|
|
android:textSize="12sp" />
|
|
|
|
<Spinner
|
|
android:id="@+id/spinner_anime"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_weight="1"
|
|
android:background="@null" />
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:contentDescription="@null"
|
|
android:src="@drawable/ic_chevron_down"
|
|
app:tint="@color/colorTextSecondary" />
|
|
</LinearLayout>
|
|
|
|
<!-- Lista de cards -->
|
|
<ListView
|
|
android:id="@+id/view_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_weight="1"
|
|
android:divider="@null"
|
|
android:dividerHeight="12dp"
|
|
android:paddingBottom="12dp"
|
|
android:scrollbars="none" />
|
|
|
|
<!-- Estado vacío -->
|
|
<TextView
|
|
android:id="@+id/empty_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="40dp"
|
|
android:gravity="center"
|
|
android:text="@string/lista_vacia"
|
|
android:textColor="@color/colorTextMuted"
|
|
android:textSize="14sp" />
|
|
</LinearLayout>
|
|
|
|
<!-- Banner AdMob (AdView por código en loadBannerAd) sobre la barra inferior -->
|
|
<FrameLayout
|
|
android:id="@+id/adContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<!-- Barra de navegación inferior -->
|
|
<include
|
|
android:id="@+id/bottom_nav"
|
|
layout="@layout/view_bottom_nav" />
|
|
|
|
</LinearLayout>
|