first commit

This commit is contained in:
2026-03-10 15:34:35 +00:00
commit a5ee481b39
68 changed files with 3187 additions and 0 deletions

View File

@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F4F9F5"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="24dp"
android:gravity="center_horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Scanner
"
android:textSize="24sp"
android:textStyle="bold"
android:textColor="#2E3D32"
android:layout_marginBottom="24dp"/>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="250dp"
android:layout_marginBottom="24dp"
app:cardCornerRadius="16dp"
app:cardElevation="4dp"
xmlns:app="http://schemas.android.com/apk/res-auto">
<ImageView
android:id="@+id/ivFotoComida"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@android:drawable/ic_menu_camera"
android:scaleType="centerCrop"
android:background="#E0E0E0"/>
</androidx.cardview.widget.CardView>
<Button
android:id="@+id/btnTirarFotoComida"
android:layout_width="match_parent"
android:layout_height="60dp"
android:text="Tirar Foto e Analisar"
android:backgroundTint="#4CAF50"
android:textStyle="bold"
android:layout_marginBottom="24dp"/>
<LinearLayout
android:id="@+id/layoutResultadosIA"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone"
android:background="#FFFFFF"
android:padding="16dp"
android:elevation="4dp">
<TextView
android:id="@+id/tvNomePratoDetectado"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Prato detetado: Salada César"
android:textSize="18sp"
android:textStyle="bold"
android:textColor="#2E3D32"
android:layout_marginBottom="16dp"/>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerViewIngredientes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#E0E0E0"
android:layout_marginBottom="16dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Total Estimado:"
android:textSize="20sp"
android:layout_weight="1"/>
<TextView
android:id="@+id/tvTotalCalorias"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0 kcal"
android:textSize="24sp"
android:textStyle="bold"
android:textColor="#4CAF50"/>
</LinearLayout>
<Button
android:id="@+id/btnAddIngredienteManual"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="+ Adicionar Ingrediente Extra"
android:backgroundTint="#2196F3"
android:layout_marginTop="16dp"/>
<Button
android:id="@+id/btnConfirmarRefeicao"
android:layout_width="match_parent"
android:layout_height="60dp"
android:text="Confirmar Refeição"
android:backgroundTint="#FF9800"
android:textStyle="bold"
android:layout_marginTop="16dp"/>
</LinearLayout>
<Button
android:id="@+id/btnVoltarFoto"
android:layout_width="match_parent"
android:layout_height="60dp"
android:text="Voltar"
android:backgroundTint="#E0E0E0"
android:textColor="#000000"
android:layout_marginTop="24dp"/>
</LinearLayout>
</ScrollView>