65 lines
2.5 KiB
XML
65 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<android.support.v7.widget.CardView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/text_margin_half"
|
|
android:layout_marginBottom="@dimen/text_margin_half"
|
|
android:layout_marginStart="@dimen/text_margin"
|
|
android:layout_marginEnd="@dimen/text_margin"
|
|
android:foreground="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="@dimen/text_margin">
|
|
|
|
<TextView
|
|
android:id="@+id/workout_date"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_marginBottom="@dimen/text_margin_half"
|
|
android:text="March 10, 2017"
|
|
android:textStyle="bold"
|
|
android:textAppearance="@android:style/TextAppearance.Material.Medium"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/workout_calories"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/workout_date"
|
|
android:layout_marginEnd="@dimen/text_margin_half"
|
|
android:text="600 Kc"
|
|
android:textAppearance="@android:style/TextAppearance.Material.Small"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/workout_minutes"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/workout_date"
|
|
android:layout_marginEnd="@dimen/text_margin_half"
|
|
android:layout_toEndOf="@+id/workout_calories"
|
|
android:text="60 min"
|
|
android:textAppearance="@android:style/TextAppearance.Material.Small" />
|
|
|
|
<TextView
|
|
android:id="@+id/workout_points"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/text_margin_half"
|
|
android:text="22 points"
|
|
android:layout_below="@+id/workout_date"
|
|
android:layout_toEndOf="@+id/workout_minutes"
|
|
android:textAppearance="@android:style/TextAppearance.Material.Small"
|
|
/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</android.support.v7.widget.CardView>
|