113 lines
3.9 KiB
XML
113 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
card_view:cardBackgroundColor="?android:colorBackground">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="Name"
|
|
android:textStyle="bold"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
<TextView
|
|
android:id="@+id/portion"
|
|
android:layout_width="60dp"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="end"
|
|
android:text="Portion"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
<TextView
|
|
android:id="@+id/carbs"
|
|
android:layout_width="50dp"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="end"
|
|
android:text="Carbs"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:gravity="end"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/fat"
|
|
android:layout_width="70dp"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="end"
|
|
android:text="Fat"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
<TextView
|
|
android:id="@+id/protein"
|
|
android:layout_width="70dp"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="end"
|
|
android:text="Protein"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
<TextView
|
|
android:id="@+id/energy"
|
|
android:layout_width="70dp"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="end"
|
|
android:text="Energy"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
<TextView
|
|
android:id="@+id/ns_sign"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:width="30dp"
|
|
android:text="NS"
|
|
android:textAlignment="viewEnd"
|
|
android:textColor="@color/colorSetTempButton"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
<TextView
|
|
android:id="@+id/remove"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingEnd="5dp"
|
|
android:paddingStart="10dp"
|
|
android:text="@string/remove_button"
|
|
android:textAlignment="viewEnd"
|
|
android:textColor="@android:color/holo_orange_light" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_marginLeft="5dp"
|
|
android:layout_marginRight="5dp"
|
|
android:layout_marginTop="5dp"
|
|
android:background="@color/list_delimiter" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|