<?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="120dp"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
app:cardElevation="10dp"
|
app:cardBackgroundColor="@color/colorAccent"
|
>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:padding="10dp">
|
|
|
|
<ImageView
|
android:layout_weight="1"
|
android:layout_width="40dp"
|
android:layout_height="70dp"
|
android:id="@+id/iv_head"/>
|
<RelativeLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content">
|
|
</RelativeLayout>
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="4"
|
android:orientation="horizontal">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:id="@+id/tv_name"
|
android:text="姓名:lizanwei"
|
android:textColor="@color/colorPrimary"
|
android:layout_toRightOf="@+id/iv_head"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="性别:男"
|
android:layout_weight="1"
|
android:id="@+id/tv_sex"
|
android:layout_toRightOf="@+id/tv_name"
|
android:layout_marginLeft="10dp"
|
android:layout_marginRight="10dp"
|
android:textColor="@color/colorPrimary"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="电子教练:高级"
|
android:layout_weight="1"
|
android:layout_toRightOf="@+id/tv_sex"
|
android:textColor="@color/colorPrimary"/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
></LinearLayout>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/user_id"
|
android:layout_below="@+id/tv_name"
|
android:id="@+id/tv_ID"
|
android:textColor="@color/colorPrimary"
|
android:layout_toRightOf="@+id/iv_head"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_start_time"
|
android:text="开始时间:"
|
android:layout_below="@+id/tv_ID"
|
android:textColor="@color/colorPrimary"
|
android:layout_toRightOf="@+id/iv_head"/>
|
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/inspector"
|
android:layout_toRightOf="@+id/tv_ID"
|
android:layout_below="@+id/tv_name"
|
android:id="@+id/inspect"
|
android:textColor="@color/colorPrimary"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="用时:"
|
android:layout_marginRight="10dp"
|
android:layout_marginLeft="10dp"
|
android:id="@+id/tv_use_time"
|
android:layout_toRightOf="@+id/tv_ID"
|
android:layout_below="@+id/inspect"
|
android:textColor="@color/colorPrimary"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="查看地图"
|
android:layout_toRightOf="@+id/tv_use_time"
|
android:layout_below="@+id/inspect"
|
android:id="@+id/view_map"
|
android:textColor="@color/colorPrimary"/>
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="120dp"
|
android:padding="5dp"
|
android:layout_alignParentEnd="true"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:layout_toRightOf="@+id/view_map">
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
|
android:src="@drawable/wheel"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
|
android:text="100"
|
android:background="@android:color/holo_green_dark"
|
android:padding="8dp"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="当前得分"
|
android:layout_weight="1"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
</android.support.v7.widget.CardView>
|