283 lines
13 KiB
XML
283 lines
13 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<ScrollView 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="#F8FAFC"
|
||
android:fillViewport="true">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="vertical"
|
||
android:padding="24dp">
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="A tua jornada começa aqui,"
|
||
android:textSize="14sp"
|
||
android:textColor="#64748B"
|
||
android:layout_marginTop="8dp"/>
|
||
|
||
<TextView
|
||
android:id="@+id/tvSaudacaoHome"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="Carregando..."
|
||
android:textSize="28sp"
|
||
android:textStyle="bold"
|
||
android:textColor="#0F172A"
|
||
android:layout_marginBottom="32dp"/>
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:id="@+id/cardTirarFoto"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="16dp"
|
||
android:clickable="true"
|
||
android:focusable="true"
|
||
android:foreground="?android:attr/selectableItemBackground"
|
||
app:cardCornerRadius="20dp"
|
||
app:cardElevation="6dp"
|
||
app:cardBackgroundColor="#0F172A"
|
||
app:contentPadding="20dp">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="horizontal"
|
||
android:gravity="center_vertical">
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:layout_width="56dp"
|
||
android:layout_height="56dp"
|
||
app:cardCornerRadius="16dp"
|
||
app:cardBackgroundColor="#38BDF8"
|
||
app:cardElevation="0dp">
|
||
<ImageView
|
||
android:layout_width="28dp"
|
||
android:layout_height="28dp"
|
||
android:layout_gravity="center"
|
||
android:src="@android:drawable/ic_menu_camera"
|
||
app:tint="#FFFFFF"/>
|
||
</androidx.cardview.widget.CardView>
|
||
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:orientation="vertical"
|
||
android:layout_marginStart="16dp">
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="Escanear Comida"
|
||
android:textSize="18sp"
|
||
android:textStyle="bold"
|
||
android:textColor="#FFFFFF"/>
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="A IA analisa a tua refeição"
|
||
android:textSize="13sp"
|
||
android:textColor="#94A3B8"
|
||
android:layout_marginTop="2dp"/>
|
||
</LinearLayout>
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="›"
|
||
android:textSize="32sp"
|
||
android:textColor="#38BDF8"
|
||
android:layout_marginStart="8dp"/>
|
||
</LinearLayout>
|
||
</androidx.cardview.widget.CardView>
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:id="@+id/cardChat"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="16dp"
|
||
android:clickable="true"
|
||
android:focusable="true"
|
||
android:foreground="?android:attr/selectableItemBackground"
|
||
app:cardCornerRadius="16dp"
|
||
app:cardElevation="2dp"
|
||
app:contentPadding="16dp">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="horizontal"
|
||
android:gravity="center_vertical">
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:layout_width="48dp"
|
||
android:layout_height="48dp"
|
||
app:cardCornerRadius="12dp"
|
||
app:cardBackgroundColor="#10B981"
|
||
app:cardElevation="0dp">
|
||
<ImageView
|
||
android:layout_width="24dp"
|
||
android:layout_height="24dp"
|
||
android:layout_gravity="center"
|
||
android:src="@android:drawable/stat_notify_chat"
|
||
app:tint="#FFFFFF"/>
|
||
</androidx.cardview.widget.CardView>
|
||
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:orientation="vertical"
|
||
android:layout_marginStart="16dp">
|
||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="NutriChat AI" android:textSize="16sp" android:textStyle="bold" android:textColor="#0F172A"/>
|
||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Fala com o teu assistente" android:textSize="12sp" android:textColor="#64748B" android:layout_marginTop="2dp"/>
|
||
</LinearLayout>
|
||
|
||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="›" android:textSize="28sp" android:textColor="#CBD5E1" android:layout_marginStart="8dp"/>
|
||
</LinearLayout>
|
||
</androidx.cardview.widget.CardView>
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:id="@+id/cardEstatisticas"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="16dp"
|
||
android:clickable="true"
|
||
android:focusable="true"
|
||
android:foreground="?android:attr/selectableItemBackground"
|
||
app:cardCornerRadius="16dp"
|
||
app:cardElevation="2dp"
|
||
app:contentPadding="16dp">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="horizontal"
|
||
android:gravity="center_vertical">
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:layout_width="48dp"
|
||
android:layout_height="48dp"
|
||
app:cardCornerRadius="12dp"
|
||
app:cardBackgroundColor="#0284C7"
|
||
app:cardElevation="0dp">
|
||
<ImageView
|
||
android:layout_width="24dp"
|
||
android:layout_height="24dp"
|
||
android:layout_gravity="center"
|
||
android:src="@android:drawable/ic_menu_sort_by_size"
|
||
app:tint="#FFFFFF"/>
|
||
</androidx.cardview.widget.CardView>
|
||
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:orientation="vertical"
|
||
android:layout_marginStart="16dp">
|
||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Estatísticas" android:textSize="16sp" android:textStyle="bold" android:textColor="#0F172A"/>
|
||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Vê os teus números e progresso" android:textSize="12sp" android:textColor="#64748B" android:layout_marginTop="2dp"/>
|
||
</LinearLayout>
|
||
|
||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="›" android:textSize="28sp" android:textColor="#CBD5E1" android:layout_marginStart="8dp"/>
|
||
</LinearLayout>
|
||
</androidx.cardview.widget.CardView>
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:id="@+id/cardDesafios"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="16dp"
|
||
android:clickable="true"
|
||
android:focusable="true"
|
||
android:foreground="?android:attr/selectableItemBackground"
|
||
app:cardCornerRadius="16dp"
|
||
app:cardElevation="2dp"
|
||
app:contentPadding="16dp">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="horizontal"
|
||
android:gravity="center_vertical">
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:layout_width="48dp"
|
||
android:layout_height="48dp"
|
||
app:cardCornerRadius="12dp"
|
||
app:cardBackgroundColor="#F59E0B"
|
||
app:cardElevation="0dp">
|
||
<ImageView
|
||
android:layout_width="24dp"
|
||
android:layout_height="24dp"
|
||
android:layout_gravity="center"
|
||
android:src="@android:drawable/star_on"
|
||
app:tint="#FFFFFF"/>
|
||
</androidx.cardview.widget.CardView>
|
||
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:orientation="vertical"
|
||
android:layout_marginStart="16dp">
|
||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Desafios Diários" android:textSize="16sp" android:textStyle="bold" android:textColor="#0F172A"/>
|
||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Ganha pontos de recompensa" android:textSize="12sp" android:textColor="#64748B" android:layout_marginTop="2dp"/>
|
||
</LinearLayout>
|
||
|
||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="›" android:textSize="28sp" android:textColor="#CBD5E1" android:layout_marginStart="8dp"/>
|
||
</LinearLayout>
|
||
</androidx.cardview.widget.CardView>
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:id="@+id/cardPerfil"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="32dp"
|
||
android:clickable="true"
|
||
android:focusable="true"
|
||
android:foreground="?android:attr/selectableItemBackground"
|
||
app:cardCornerRadius="16dp"
|
||
app:cardElevation="2dp"
|
||
app:contentPadding="16dp">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="horizontal"
|
||
android:gravity="center_vertical">
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:layout_width="48dp"
|
||
android:layout_height="48dp"
|
||
app:cardCornerRadius="12dp"
|
||
app:cardBackgroundColor="#8B5CF6"
|
||
app:cardElevation="0dp">
|
||
<ImageView
|
||
android:layout_width="24dp"
|
||
android:layout_height="24dp"
|
||
android:layout_gravity="center"
|
||
android:src="@android:drawable/ic_menu_myplaces"
|
||
app:tint="#FFFFFF"/>
|
||
</androidx.cardview.widget.CardView>
|
||
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:orientation="vertical"
|
||
android:layout_marginStart="16dp">
|
||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="O Meu Perfil" android:textSize="16sp" android:textStyle="bold" android:textColor="#0F172A"/>
|
||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Dados, pontuação e definições" android:textSize="12sp" android:textColor="#64748B" android:layout_marginTop="2dp"/>
|
||
</LinearLayout>
|
||
|
||
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="›" android:textSize="28sp" android:textColor="#CBD5E1" android:layout_marginStart="8dp"/>
|
||
</LinearLayout>
|
||
</androidx.cardview.widget.CardView>
|
||
|
||
</LinearLayout>
|
||
</ScrollView> |