From d6917b96e32abeafbc54c3a51d477b8dccb482a9 Mon Sep 17 00:00:00 2001
From: 230415 <230415@epvc.pt>
Date: Tue, 17 Mar 2026 16:08:40 +0000
Subject: [PATCH] fragments
---
.../lifegrid/menu/DefinicoesFragment.java | 34 +
.../lifegrid/menu/DocumentosFragment.java | 34 +
.../lifegrid/menu/GraficosFragment.java | 33 +
.../example/lifegrid/menu/MetasFragment.java | 33 +
.../main/res/layout/activity_tela_inicial.xml | 772 +++++++++---------
app/src/main/res/layout/ativos.xml | 158 ----
app/src/main/res/layout/definicoes.xml | 6 -
app/src/main/res/layout/documentos.xml | 6 -
app/src/main/res/layout/fragment_ativos.xml | 84 +-
.../main/res/layout/fragment_definicoes.xml | 14 +
.../main/res/layout/fragment_documentos.xml | 87 ++
app/src/main/res/layout/fragment_graficos.xml | 14 +
app/src/main/res/layout/fragment_metas.xml | 119 +++
.../main/res/layout/fragment_transacoes.xml | 2 +-
app/src/main/res/layout/graficos.xml | 6 -
app/src/main/res/layout/meta.xml | 6 -
16 files changed, 805 insertions(+), 603 deletions(-)
create mode 100644 app/src/main/java/com/example/lifegrid/menu/DefinicoesFragment.java
create mode 100644 app/src/main/java/com/example/lifegrid/menu/DocumentosFragment.java
create mode 100644 app/src/main/java/com/example/lifegrid/menu/GraficosFragment.java
create mode 100644 app/src/main/java/com/example/lifegrid/menu/MetasFragment.java
delete mode 100644 app/src/main/res/layout/ativos.xml
delete mode 100644 app/src/main/res/layout/definicoes.xml
delete mode 100644 app/src/main/res/layout/documentos.xml
create mode 100644 app/src/main/res/layout/fragment_definicoes.xml
create mode 100644 app/src/main/res/layout/fragment_documentos.xml
create mode 100644 app/src/main/res/layout/fragment_graficos.xml
create mode 100644 app/src/main/res/layout/fragment_metas.xml
delete mode 100644 app/src/main/res/layout/graficos.xml
delete mode 100644 app/src/main/res/layout/meta.xml
diff --git a/app/src/main/java/com/example/lifegrid/menu/DefinicoesFragment.java b/app/src/main/java/com/example/lifegrid/menu/DefinicoesFragment.java
new file mode 100644
index 0000000..29a4d4f
--- /dev/null
+++ b/app/src/main/java/com/example/lifegrid/menu/DefinicoesFragment.java
@@ -0,0 +1,34 @@
+package com.example.lifegrid.menu;
+
+import android.os.Bundle;
+
+import androidx.fragment.app.Fragment;
+
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import com.example.lifegrid.R;
+
+
+public class DefinicoesFragment extends Fragment {
+
+ public DefinicoesFragment() {
+ // Required empty public constructor
+ }
+
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ View root = inflater.inflate(R.layout.fragment_transacoes, container, false);
+
+
+ return root;
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/lifegrid/menu/DocumentosFragment.java b/app/src/main/java/com/example/lifegrid/menu/DocumentosFragment.java
new file mode 100644
index 0000000..ddd488c
--- /dev/null
+++ b/app/src/main/java/com/example/lifegrid/menu/DocumentosFragment.java
@@ -0,0 +1,34 @@
+package com.example.lifegrid.menu;
+
+import android.os.Bundle;
+
+import androidx.fragment.app.Fragment;
+
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import com.example.lifegrid.R;
+
+
+public class DocumentosFragment extends Fragment {
+
+ public DocumentosFragment() {
+ // Required empty public constructor
+ }
+
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ View root = inflater.inflate(R.layout.fragment_transacoes, container, false);
+
+
+ return root;
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/lifegrid/menu/GraficosFragment.java b/app/src/main/java/com/example/lifegrid/menu/GraficosFragment.java
new file mode 100644
index 0000000..fbdd802
--- /dev/null
+++ b/app/src/main/java/com/example/lifegrid/menu/GraficosFragment.java
@@ -0,0 +1,33 @@
+package com.example.lifegrid.menu;
+
+import android.os.Bundle;
+
+import androidx.fragment.app.Fragment;
+
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import com.example.lifegrid.R;
+
+public class GraficosFragment extends Fragment {
+
+ public GraficosFragment() {
+ // Required empty public constructor
+ }
+
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ View root = inflater.inflate(R.layout.fragment_transacoes, container, false);
+
+
+ return root;
+ }
+ }
\ No newline at end of file
diff --git a/app/src/main/java/com/example/lifegrid/menu/MetasFragment.java b/app/src/main/java/com/example/lifegrid/menu/MetasFragment.java
new file mode 100644
index 0000000..bacbe91
--- /dev/null
+++ b/app/src/main/java/com/example/lifegrid/menu/MetasFragment.java
@@ -0,0 +1,33 @@
+package com.example.lifegrid.menu;
+
+import android.os.Bundle;
+
+import androidx.fragment.app.Fragment;
+
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import com.example.lifegrid.R;
+
+public class MetasFragment extends Fragment {
+
+ public MetasFragment() {
+ // Required empty public constructor
+ }
+
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ View root = inflater.inflate(R.layout.fragment_transacoes, container, false);
+
+
+ return root;
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_tela_inicial.xml b/app/src/main/res/layout/activity_tela_inicial.xml
index c6f6e88..dadd4af 100644
--- a/app/src/main/res/layout/activity_tela_inicial.xml
+++ b/app/src/main/res/layout/activity_tela_inicial.xml
@@ -13,402 +13,410 @@
+
+
+
+ android:id="@+id/receitasCardView"
+ android:layout_width="379dp"
+ android:layout_height="175dp"
+ android:layout_margin="16dp"
+ android:layout_marginTop="28dp"
+ android:background="@drawable/cardview_background"
+ android:padding="16dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/textView11">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ app:layout_constraintTop_toBottomOf="@+id/tvTitulo" />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ app:layout_constraintTop_toBottomOf="@+id/tvValor"
+ app:layout_constraintVertical_bias="0.277" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/ativos.xml b/app/src/main/res/layout/ativos.xml
deleted file mode 100644
index 925be59..0000000
--- a/app/src/main/res/layout/ativos.xml
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/definicoes.xml b/app/src/main/res/layout/definicoes.xml
deleted file mode 100644
index 77d9ef6..0000000
--- a/app/src/main/res/layout/definicoes.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/documentos.xml b/app/src/main/res/layout/documentos.xml
deleted file mode 100644
index 77d9ef6..0000000
--- a/app/src/main/res/layout/documentos.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_ativos.xml b/app/src/main/res/layout/fragment_ativos.xml
index 3913924..6a89cf5 100644
--- a/app/src/main/res/layout/fragment_ativos.xml
+++ b/app/src/main/res/layout/fragment_ativos.xml
@@ -1,13 +1,12 @@
-
+ android:layout_height="match_parent">
+
+
-
-
-
-
-
-
-
+
-
\ No newline at end of file
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_definicoes.xml b/app/src/main/res/layout/fragment_definicoes.xml
new file mode 100644
index 0000000..63cf033
--- /dev/null
+++ b/app/src/main/res/layout/fragment_definicoes.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_documentos.xml b/app/src/main/res/layout/fragment_documentos.xml
new file mode 100644
index 0000000..5245336
--- /dev/null
+++ b/app/src/main/res/layout/fragment_documentos.xml
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_graficos.xml b/app/src/main/res/layout/fragment_graficos.xml
new file mode 100644
index 0000000..3488ef0
--- /dev/null
+++ b/app/src/main/res/layout/fragment_graficos.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_metas.xml b/app/src/main/res/layout/fragment_metas.xml
new file mode 100644
index 0000000..33d000f
--- /dev/null
+++ b/app/src/main/res/layout/fragment_metas.xml
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_transacoes.xml b/app/src/main/res/layout/fragment_transacoes.xml
index 54bf13e..3468619 100644
--- a/app/src/main/res/layout/fragment_transacoes.xml
+++ b/app/src/main/res/layout/fragment_transacoes.xml
@@ -17,7 +17,7 @@
app:layout_constraintEnd_toEndOf="parent" />
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/meta.xml b/app/src/main/res/layout/meta.xml
deleted file mode 100644
index 77d9ef6..0000000
--- a/app/src/main/res/layout/meta.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
\ No newline at end of file