123 lines
5.6 KiB
XML
123 lines
5.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<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:orientation="vertical"
|
|
android:background="@color/background_light">
|
|
|
|
<!-- Header -->
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="64dp"
|
|
android:paddingHorizontal="16dp"
|
|
android:background="@color/card_background"
|
|
android:elevation="0dp">
|
|
|
|
<ImageButton
|
|
android:id="@+id/btnBack"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_centerVertical="true"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/ic_back"
|
|
app:tint="@color/text_primary" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:text="Configurações"
|
|
android:textColor="@color/text_primary"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold" />
|
|
</RelativeLayout>
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="20dp">
|
|
|
|
<!-- 👤 CONTA -->
|
|
<TextView
|
|
style="@style/SettingsSectionHeader"
|
|
android:text="Conta" />
|
|
|
|
<androidx.cardview.widget.CardView style="@style/SettingsCard">
|
|
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
|
|
<include layout="@layout/item_settings_clickable" android:id="@+id/settingEmail" />
|
|
<include layout="@layout/item_settings_clickable" android:id="@+id/settingPassword" />
|
|
<include layout="@layout/item_settings_switch" android:id="@+id/settingPublicProfile" />
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<!-- 🎨 APARÊNCIA -->
|
|
<TextView
|
|
style="@style/SettingsSectionHeader"
|
|
android:text="Aparência" />
|
|
|
|
<androidx.cardview.widget.CardView style="@style/SettingsCard">
|
|
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
|
|
<include layout="@layout/item_settings_switch" android:id="@+id/settingDarkMode" />
|
|
<include layout="@layout/item_settings_clickable" android:id="@+id/settingThemeColor" />
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<!-- 🔔 NOTIFICAÇÕES -->
|
|
<TextView
|
|
style="@style/SettingsSectionHeader"
|
|
android:text="Notificações" />
|
|
|
|
<androidx.cardview.widget.CardView style="@style/SettingsCard">
|
|
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
|
|
<include layout="@layout/item_settings_switch" android:id="@+id/settingDailyReminders" />
|
|
<include layout="@layout/item_settings_switch" android:id="@+id/settingAntiProcrastination" />
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<!-- 🎯 PREFERÊNCIAS DE FOCO -->
|
|
<TextView
|
|
style="@style/SettingsSectionHeader"
|
|
android:text="Preferências de Foco" />
|
|
|
|
<androidx.cardview.widget.CardView style="@style/SettingsCard">
|
|
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
|
|
<include layout="@layout/item_settings_clickable" android:id="@+id/settingFocusDuration" />
|
|
<include layout="@layout/item_settings_clickable" android:id="@+id/settingBreakDuration" />
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<!-- 🛡️ PRIVACIDADE -->
|
|
<TextView
|
|
style="@style/SettingsSectionHeader"
|
|
android:text="Privacidade" />
|
|
|
|
<androidx.cardview.widget.CardView style="@style/SettingsCard">
|
|
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
|
|
<include layout="@layout/item_settings_switch" android:id="@+id/settingIncognito" />
|
|
<include layout="@layout/item_settings_clickable" android:id="@+id/settingExportData" />
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<!-- Danger Zone -->
|
|
<Button
|
|
android:id="@+id/btnDeleteAccount"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:layout_marginTop="24dp"
|
|
android:text="Eliminar Conta"
|
|
android:textColor="@color/error_red"
|
|
android:backgroundTint="#10EF4444"
|
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
android:layout_marginBottom="40dp"/>
|
|
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
</LinearLayout>
|