IanTDuncan / MealTime

Project for CSC 480
0 stars 0 forks source link

UI - Nutrition Label Popup #195

Closed BeepDroid closed 5 months ago

BeepDroid commented 5 months ago

UI - Nutrition Label Popup


Description:


Our nutrition label popup, which displays the nutrition label as we saw, is having a problem where it only displays the corner of the image instead of the full thing.

Expected vs. Actual Behavior:


  1. A display of the full nutrition label at an appropriate size without cropping.
  2. Image isn't doing it as often, but will still crop the image down to a corner.

Code Snippets:


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:padding="8dp">

    <ImageView
        android:id="@+id/mealNutritionLabel"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:scaleType="fitCenter"
        android:adjustViewBounds="true"/>

</LinearLayout>

Environment Details:

Android Studio, Windows OS.

Current Status:

In progress.