| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#FCFCFC"
- tools:context=".ui.activity.MainActivity">
- <LinearLayout
- android:id="@+id/main"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#FCFCFC"
- android:orientation="vertical"
- tools:layout_editor_absoluteX="-85dp"
- tools:layout_editor_absoluteY="82dp">
- <LinearLayout
- android:id="@+id/main_top"
- android:layout_width="match_parent"
- android:layout_height="195dp"
- android:orientation="horizontal">
- <LinearLayout
- android:id="@+id/head_bg"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="#028FE1"
- android:orientation="vertical">
- <TextView
- android:id="@+id/head_status"
- android:layout_width="match_parent"
- android:layout_height="58dp"
- android:layout_weight="1"
- android:gravity="center"
- android:text="心率带未连接 电量 0%"
- android:textColor="@color/white" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="horizontal">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="vertical">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="105dp">
- <TextView
- android:id="@+id/activLevel"
- android:layout_width="match_parent"
- android:layout_height="82dp"
- android:layout_weight="1"
- android:gravity="center"
- android:text="0"
- android:textColor="@color/white"
- android:textSize="50dp" />
- <TextView
- android:id="@+id/percentIcon"
- android:layout_width="40dp"
- android:layout_height="82dp"
- android:layout_alignParentTop="true"
- android:layout_alignParentRight="true"
- android:layout_marginTop="10dp"
- android:paddingLeft="10dp"
- android:text="%"
- android:textColor="@color/white"
- android:textSize="20dp" />
- </RelativeLayout>
- <TextView
- android:id="@+id/act_level_text"
- android:layout_width="90dp"
- android:layout_height="30dp"
- android:layout_gravity="center"
- android:background="@drawable/circle_btn"
- android:gravity="center"
- android:text="激活放松"
- android:textColor="@color/white" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/imageView"
- android:layout_width="match_parent"
- android:layout_height="97dp"
- android:layout_centerHorizontal="true"
- android:gravity="center"
- android:src="@drawable/head" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="horizontal">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <TextView
- android:id="@+id/textView10"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_gravity="center"
- android:layout_weight="1"
- android:gravity="center_vertical|center"
- android:text="王仪涵"
- android:textColor="@color/white" />
- <ImageView
- android:id="@+id/sex"
- android:layout_width="18dp"
- android:layout_height="18dp"
- android:layout_alignParentRight="true"
- android:layout_gravity="center"
- android:layout_marginTop="25dp"
- android:layout_marginRight="20dp"
- android:gravity="center_vertical|left"
- android:src="@drawable/male" />
- </RelativeLayout>
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="vertical">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="105dp">
- <TextView
- android:id="@+id/heartReal"
- android:layout_width="match_parent"
- android:layout_height="82dp"
- android:layout_weight="1"
- android:gravity="center"
- android:text="0"
- android:textColor="@color/white"
- android:textSize="50dp" />
- <ImageView
- android:id="@+id/heart"
- android:layout_width="20dp"
- android:layout_height="20dp"
- android:layout_alignParentTop="true"
- android:layout_alignParentRight="true"
- android:layout_centerHorizontal="true"
- android:layout_marginTop="17dp"
- android:layout_marginRight="5dp"
- android:gravity="center"
- android:src="@drawable/heart" />
- </RelativeLayout>
- <TextView
- android:id="@+id/curentHr"
- android:layout_width="90dp"
- android:layout_height="30dp"
- android:layout_gravity="center"
- android:background="@drawable/circle_btn"
- android:gravity="center"
- android:text="瞬时心率"
- android:textColor="@color/white" />
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- <include
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_centerHorizontal="true"
- android:layout_weight="1"
- android:layout_marginTop="20dp"
- layout="@layout/main_basic" />
- <include
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_centerHorizontal="true"
- android:layout_weight="1"
- android:layout_marginTop="20dp"
- layout="@layout/main_chart_part" />
- </LinearLayout>
- <com.google.android.material.bottomnavigation.BottomNavigationView
- android:id="@+id/bottomNavigation"
- android:layout_width="0dp"
- android:layout_height="50dp"
- android:background="#ccc"
- android:paddingTop="0dp"
- app:itemIconSize="20dp"
- app:labelVisibilityMode="labeled"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:menu="@menu/bottom_nav_menu" />
- </androidx.constraintlayout.widget.ConstraintLayout>
|