102 lines
3.8 KiB
XML
102 lines
3.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/info_layout"
|
|
style="@style/Widget.MaterialComponents.CardView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_marginBottom="4dp"
|
|
app:cardCornerRadius="4dp"
|
|
app:contentPadding="2dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/date"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginEnd="5dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal"
|
|
android:gravity="center"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
tools:ignore="RtlSymmetry"
|
|
tools:text="1.1.2000" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:baselineAligned="true"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/time"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="10dp"
|
|
android:paddingTop="3dp"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
tools:ignore="RtlSymmetry"
|
|
tools:text="09:00" />
|
|
|
|
<TextView
|
|
android:id="@+id/action"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingStart="10dp"
|
|
android:paddingTop="3dp"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
tools:ignore="RtlSymmetry"
|
|
tools:text="USER ENTRY" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iconSource"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:orientation="horizontal"
|
|
app:srcCompat="@drawable/ic_cp_bolus_carbs"
|
|
tools:ignore="contentDescription" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/values"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:paddingStart="20dp"
|
|
android:paddingEnd="10dp"
|
|
android:textStyle="bold"
|
|
tools:text="Values with units" />
|
|
|
|
<TextView
|
|
android:id="@+id/notes"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="20dp"
|
|
android:paddingEnd="10dp"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
tools:ignore="RtlSymmetry"
|
|
tools:text="Notes" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|