352 lines
15 KiB
XML
352 lines
15 KiB
XML
<?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:background="@color/fundo_app"
|
|
tools:context=".DefinicoesActivity">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbarDefinicoes"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:background="@color/fundo_app"
|
|
android:elevation="0dp"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:navigationIcon="@drawable/ic_arrow_back"
|
|
app:title="Definições"
|
|
app:titleTextColor="@color/texto_principal" />
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:fillViewport="true"
|
|
app:layout_constraintBottom_toTopOf="@+id/buttonContainer"
|
|
app:layout_constraintTop_toBottomOf="@+id/toolbarDefinicoes">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="20dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="12dp"
|
|
android:text="A Tua Conta"
|
|
android:textAllCaps="true"
|
|
android:textColor="@color/text_secondary"
|
|
android:textSize="12sp"
|
|
android:textStyle="bold" />
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="24dp"
|
|
app:cardBackgroundColor="@color/fundo_cartao"
|
|
app:cardCornerRadius="16dp"
|
|
app:cardElevation="1dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/itemEditarPerfil"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:src="@drawable/ic_edit_profile"
|
|
app:tint="@color/texto_principal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Editar Perfil"
|
|
android:textColor="@color/texto_principal"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Alterar nome, email..."
|
|
android:textColor="@color/text_secondary"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:src="@drawable/ic_chevron_right"
|
|
app:tint="@color/text_secondary" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="12dp"
|
|
android:text="Preferências e Segurança"
|
|
android:textAllCaps="true"
|
|
android:textColor="@color/text_secondary"
|
|
android:textSize="12sp"
|
|
android:textStyle="bold" />
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="24dp"
|
|
app:cardBackgroundColor="@color/fundo_cartao"
|
|
app:cardCornerRadius="16dp"
|
|
app:cardElevation="1dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:src="@drawable/ic_moon"
|
|
app:tint="@color/texto_principal" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:layout_weight="1"
|
|
android:text="Modo Escuro"
|
|
android:textColor="@color/texto_principal"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/switchModoEscuro"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:thumbTint="@color/tech_accent_cyan"
|
|
app:trackTint="@color/tech_accent_cyan" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="@color/linha_separadora" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:src="@drawable/ic_fingerprint"
|
|
app:tint="@color/texto_principal" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:layout_weight="1"
|
|
android:text="Bloqueio Biométrico"
|
|
android:textColor="@color/texto_principal"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/switchBiometria"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:thumbTint="@color/tech_accent_cyan"
|
|
app:trackTint="@color/tech_accent_cyan" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="@color/linha_separadora" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:src="@drawable/ic_bell"
|
|
app:tint="@color/texto_principal" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:layout_weight="1"
|
|
android:text="Ativar Notificações"
|
|
android:textColor="@color/texto_principal"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/switchNotificacoes"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:thumbTint="@color/tech_accent_cyan"
|
|
app:trackTint="@color/tech_accent_cyan" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="12dp"
|
|
android:text="Ajuda"
|
|
android:textAllCaps="true"
|
|
android:textColor="@color/text_secondary"
|
|
android:textSize="12sp"
|
|
android:textStyle="bold" />
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="20dp"
|
|
app:cardBackgroundColor="@color/fundo_cartao"
|
|
app:cardCornerRadius="16dp"
|
|
app:cardElevation="1dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/itemCentroSuporte"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:padding="16dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:src="@drawable/ic_support"
|
|
app:tint="@color/texto_principal" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:layout_weight="1"
|
|
android:text="Centro de Suporte"
|
|
android:textColor="@color/texto_principal"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold" />
|
|
|
|
<ImageView
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:src="@drawable/ic_chevron_right"
|
|
app:tint="@color/text_secondary" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/buttonContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/fundo_app"
|
|
android:orientation="vertical"
|
|
android:paddingHorizontal="20dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="16dp"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:background="@color/linha_separadora" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnTerminarSessao"
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:layout_marginBottom="12dp"
|
|
android:text="Terminar Sessão"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/texto_principal"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
app:cornerRadius="16dp"
|
|
app:icon="@drawable/ic_logout"
|
|
app:iconGravity="textStart"
|
|
app:iconTint="@color/texto_principal"
|
|
app:strokeColor="@color/linha_separadora"
|
|
app:strokeWidth="1dp" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnApagarConta"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:text="Apagar Conta e Dados"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/white"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
app:backgroundTint="@color/tech_accent_red"
|
|
app:cornerRadius="16dp"
|
|
app:icon="@drawable/ic_delete_forever"
|
|
app:iconGravity="textStart"
|
|
app:iconTint="@color/white"
|
|
app:rippleColor="@color/white" />
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |