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.
428 lines
17 KiB
XML
428 lines
17 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Opciones rediseñadas (mockup SVG): cards de ajustes con título+descripción
|
|
+ acciones (web, privacidad, acerca de). Banner + barra inferior al final. -->
|
|
<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_ajustes"
|
|
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 -->
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:clipToPadding="false"
|
|
android:paddingStart="20dp"
|
|
android:paddingEnd="20dp"
|
|
android:paddingTop="15dp"
|
|
android:paddingBottom="12dp"
|
|
android:scrollbars="none">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Notificación diaria -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bg_card"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:contentDescription="@null"
|
|
android:src="@drawable/ic_bell"
|
|
app:tint="@color/accent" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="14dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/opts_notif_title"
|
|
android:textColor="@color/textPrimary"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:text="@string/opts_notif_desc"
|
|
android:textColor="@color/colorTextMuted"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<CheckBox
|
|
android:id="@+id/chk_alarm"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
|
|
<!-- Notificación persistente -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:background="@drawable/bg_card"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:contentDescription="@null"
|
|
android:src="@drawable/ic_bell"
|
|
app:tint="@color/accent" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="14dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/opts_pers_title"
|
|
android:textColor="@color/textPrimary"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:text="@string/opts_pers_desc"
|
|
android:textColor="@color/colorTextMuted"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<CheckBox
|
|
android:id="@+id/chk_persistent"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
|
|
<!-- Hora de la notificación -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:background="@drawable/bg_card"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:contentDescription="@null"
|
|
android:src="@drawable/ic_clock"
|
|
app:tint="@color/accent" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="14dp"
|
|
android:text="@string/opts_hora_title"
|
|
android:textColor="@color/textPrimary"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<Spinner
|
|
android:id="@+id/spinner_hour"
|
|
android:layout_width="0dp"
|
|
android:layout_height="48dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/bg_card_strong"
|
|
android:dropDownWidth="80dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:text=":"
|
|
android:textColor="@color/textPrimary"
|
|
android:textSize="18sp" />
|
|
|
|
<Spinner
|
|
android:id="@+id/spinner_minute"
|
|
android:layout_width="0dp"
|
|
android:layout_height="48dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/bg_card_strong"
|
|
android:dropDownWidth="80dp" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<!-- Animes seleccionados -->
|
|
<LinearLayout
|
|
android:id="@+id/card_animes"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:background="@drawable/bg_card"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:foreground="?attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:contentDescription="@null"
|
|
android:src="@drawable/ic_book"
|
|
app:tint="@color/accent" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="14dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/opts_animes_title"
|
|
android:textColor="@color/textPrimary"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:text="@string/opts_animes_desc"
|
|
android:textColor="@color/colorTextMuted"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:contentDescription="@null"
|
|
android:src="@drawable/ic_chevron_right"
|
|
app:tint="@color/colorTextMuted" />
|
|
</LinearLayout>
|
|
|
|
<!-- Visita jkanetwork.com -->
|
|
<LinearLayout
|
|
android:id="@+id/card_web"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:background="@drawable/bg_card"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:foreground="?attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:contentDescription="@null"
|
|
android:src="@drawable/ic_web"
|
|
app:tint="@color/accent" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="14dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/opts_web_title"
|
|
android:textColor="@color/textPrimary"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:text="@string/opts_web_desc"
|
|
android:textColor="@color/colorTextMuted"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:contentDescription="@null"
|
|
android:src="@drawable/ic_chevron_right"
|
|
app:tint="@color/colorTextMuted" />
|
|
</LinearLayout>
|
|
|
|
<!-- Política de privacidad -->
|
|
<LinearLayout
|
|
android:id="@+id/card_priv"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:background="@drawable/bg_card"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:foreground="?attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:contentDescription="@null"
|
|
android:src="@drawable/ic_privacy"
|
|
app:tint="@color/accent" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="14dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/opts_priv_title"
|
|
android:textColor="@color/textPrimary"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:text="@string/opts_priv_desc"
|
|
android:textColor="@color/colorTextMuted"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:contentDescription="@null"
|
|
android:src="@drawable/ic_chevron_right"
|
|
app:tint="@color/colorTextMuted" />
|
|
</LinearLayout>
|
|
|
|
<!-- Acerca de -->
|
|
<LinearLayout
|
|
android:id="@+id/card_about"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:background="@drawable/bg_card"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:foreground="?attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:contentDescription="@null"
|
|
android:src="@drawable/ic_info"
|
|
app:tint="@color/accent" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="14dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/opts_about_title"
|
|
android:textColor="@color/textPrimary"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:contentDescription="@null"
|
|
android:src="@drawable/ic_chevron_right"
|
|
app:tint="@color/colorTextMuted" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
<!-- 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>
|