This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
DevOpsOpenHack/MobileApps/MyDriving/MyDriving.Android/Resources/layout/item_trip.axml
2022-11-03 16:41:13 -04:00

75 lines
3.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk.res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
local:cardBackgroundColor="@android:color/white"
local:cardElevation="2dp"
local:cardUseCompatPadding="true"
local:cardCornerRadius="2dp"
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:foreground="?android:attr/selectableItemBackground">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="124dp"
android:scaleType="centerCrop"
android:id="@+id/photo" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:orientation="vertical"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:paddingLeft="16dp"
android:paddingRight="16dp">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
android:textColor="@color/primary_text"
android:text="Hello World"
android:id="@+id/text_title" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:layout_marginTop="4dp">
<LinearLayout
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:gravity="left|bottom">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:text="Distance: "
android:textColor="@color/secondary_text" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:text="Hello World"
android:textColor="@color/primary"
android:id="@+id/text_distance" />
</LinearLayout>
<TextView
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.AppCompat.Caption"
android:text="Hello World"
android:id="@+id/text_date"
android:gravity="right|bottom"
android:textColor="@color/time_accent" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>