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