Closed bdshanks-28 closed 6 months ago
Will show meal name, meal calories, meal ingredients and nutrients once back end code is caught up. Attribution is here as well as a back button.
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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" >
<TextView
android:id="@+id/mealName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginStart="117dp"
android:layout_marginTop="69dp"
android:text="Meal Name"
android:textSize="35sp" />
<Button
android:id="@+id/backbutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginStart="28dp"
android:layout_marginTop="19dp"
android:text="Back" />
<TextView
android:id="@+id/calorieAmountText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginStart="5dp"
android:layout_marginTop="141dp"
android:text="Calorie Amount:"
android:textSize="25sp" />
<EditText
android:id="@+id/editTextNumber"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="12dp"
android:layout_marginTop="139dp"
android:layout_marginEnd="12dp"
android:layout_toEndOf="@+id/calorieAmountText"
android:ems="10"
android:hint="Calories in meal"
android:inputType="number" />
<EditText
android:id="@+id/ingredientsList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginStart="75dp"
android:layout_marginTop="203dp"
android:ems="10"
android:gravity="start|top"
android:hint="List of ingredients + nutrients"
android:inputType="textMultiLine" />
<ImageView
android:id="@+id/attributionImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="80dp"
android:src="@drawable/edamam_badge_transparent" />
meal_result_activity.xml addition of features
Description:
Addition of functions required to display meal generation result.
Steps to Reproduce:
N/A
Expected vs. Actual Behavior:
Should accurately display meal name, meal ingredients and meal's calories.
Code Snippets:
N/A
Environment Details:
Operating System: Android Firebase SDK Version: 23.0.0 Kotlin Version: 1.5.21 Android Studio Version: 4.2.1 Gradle Version: 7.0.2 SQLite3 3.45.1.
For Issue Resolution:
Addition of features to perform the expect task.
For Investigations/Research:
N/A
Current Status:
In progress