moon
This commit is contained in:
@@ -39,4 +39,8 @@ dependencies {
|
||||
implementation 'com.github.bumptech.glide:glide:4.9.0'
|
||||
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
|
||||
implementation 'com.android.support:recyclerview-v7:27.1.1'
|
||||
|
||||
//横向进度条
|
||||
implementation 'me.zhouzhuo.zzhorizontalprogressbar:zz-horizontal-progressbar:1.1.0'
|
||||
implementation 'me.itangqi.waveloadingview:library:0.3.5'
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ import com.scorpiomiku.oldpeoplehome.modules.oldpeople.fragmemt.HeartRateFragmen
|
||||
import com.scorpiomiku.oldpeoplehome.modules.oldpeople.fragmemt.MyInformationFragment;
|
||||
import com.scorpiomiku.oldpeoplehome.modules.oldpeople.fragmemt.SleepFragment;
|
||||
import com.scorpiomiku.oldpeoplehome.modules.oldpeople.fragmemt.StepFragment;
|
||||
import com.scorpiomiku.oldpeoplehome.utils.StatusBarUtils;
|
||||
|
||||
import butterknife.BindView;
|
||||
import butterknife.ButterKnife;
|
||||
@@ -44,6 +45,13 @@ public class OldPeopleMainActivity extends BaseActivity {
|
||||
new EnvironmentFragment(),
|
||||
new MyInformationFragment()
|
||||
};
|
||||
private int[] barColors = {
|
||||
R.color.step_bg,
|
||||
R.color.sleep_bg,
|
||||
R.color.heart_rate_bg,
|
||||
R.color.environment_bg,
|
||||
R.color.colorPrimaryDark
|
||||
};
|
||||
|
||||
@Override
|
||||
protected Handler initHandle() {
|
||||
@@ -109,11 +117,13 @@ public class OldPeopleMainActivity extends BaseActivity {
|
||||
fragmentTransaction.add(R.id.container, fragments[2]);
|
||||
fragmentTransaction.add(R.id.container, fragments[3]);
|
||||
fragmentTransaction.add(R.id.container, fragments[4]);
|
||||
|
||||
fragmentTransaction.hide(fragments[1]);
|
||||
fragmentTransaction.hide(fragments[2]);
|
||||
fragmentTransaction.hide(fragments[3]);
|
||||
fragmentTransaction.hide(fragments[4]);
|
||||
fragmentTransaction.commit();
|
||||
StatusBarUtils.setWindowStatusBarColor(this, barColors[0]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -126,6 +136,7 @@ public class OldPeopleMainActivity extends BaseActivity {
|
||||
for (int i = 0; i < fragments.length; i++) {
|
||||
if (i == index) {
|
||||
fragmentTransaction.show(fragments[i]);
|
||||
StatusBarUtils.setWindowStatusBarColor(this, barColors[i]);
|
||||
} else {
|
||||
fragmentTransaction.hide(fragments[i]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.scorpiomiku.oldpeoplehome.utils;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.Dialog;
|
||||
import android.os.Build;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
|
||||
/**
|
||||
* Created by ScorpioMiku on 2019/8/18.
|
||||
*/
|
||||
|
||||
public class StatusBarUtils {
|
||||
//设置Activity对应的顶部状态栏的颜色
|
||||
public static void setWindowStatusBarColor(Activity activity, int colorResId) {
|
||||
try {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
Window window = activity.getWindow();
|
||||
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
||||
window.setStatusBarColor(activity.getResources().getColor(colorResId));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
//设置Dialog对应的顶部状态栏的颜色
|
||||
public static void setWindowStatusBarColor(Dialog dialog, int colorResId) {
|
||||
try {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
Window window = dialog.getWindow();
|
||||
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
||||
window.setStatusBarColor(dialog.getContext().getResources().getColor(colorResId));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.scorpiomiku.oldpeoplehome.utils;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Created by ScorpioMiku on 2019/8/18.
|
||||
*/
|
||||
|
||||
public class TimeUtils {
|
||||
public static String getTime() {
|
||||
@SuppressLint("SimpleDateFormat") SimpleDateFormat simpleDateFormat
|
||||
= new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");// HH:mm:ss
|
||||
//获取当前时间
|
||||
Date date = new Date(System.currentTimeMillis());
|
||||
return simpleDateFormat.format(date) + "";
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024.0"
|
||||
android:viewportWidth="1024.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#ec8060" android:pathData="M512,2.2C230.9,2.2 2.2,230.9 2.2,512 2.2,793.1 230.9,1021.8 512,1021.8c281.1,0 509.8,-228.7 509.8,-509.8C1021.8,230.9 793.1,2.2 512,2.2zM689.2,570.3c-18.3,69.3 -83.3,110.1 -116.2,110.1 5.6,-62 -65.4,-66.4 -66.7,-148.7 -22.7,21 -74.2,107.4 -40.3,154.3 -134.1,-41.5 -110.4,-210 -64.7,-269.6 4.6,22.5 20,34.9 20,34.9 8.3,-8.5 23.4,-25.6 36.6,-47.1 25.4,-41.5 32.2,-79.8 20.3,-113.8l-5.1,-15.6 14.9,6.6c29.8,13.4 53.7,28.8 71.3,45.4 15.4,14.6 26.4,31 32.2,48.3 9,26.1 6.3,51.3 2.2,72 23,-11.5 28.3,-47.4 28.3,-47.4s97.7,54.5 67.2,170.4z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024.0"
|
||||
android:viewportWidth="1024.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#ec8060" android:pathData="M537.1,23.7c268.6,0 486.4,217.8 486.4,486.4 0,268.6 -217.8,486.4 -486.4,486.4 -268.6,0 -486.4,-217.8 -486.4,-486.4C50.7,241.5 268.4,23.7 537.1,23.7zM708.2,334.8l-427.6,151.6 209.3,64.5 73,217.8 146.6,-435L708.2,334.8z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024.0"
|
||||
android:viewportWidth="1024.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#ffffff" android:pathData="M511.4,91.1c-59.6,0 -116.2,12.5 -167.6,34.8 17.2,-2.8 34.7,-4.7 52.7,-4.7 177.9,0 322.1,144.2 322.1,322.1 0,177.9 -144.2,322.1 -322.1,322.1 -141.5,0 -261.4,-91.4 -304.6,-218.2 17.8,216.3 198.6,386.3 419.5,386.3 232.6,0 421.2,-188.6 421.2,-421.2 0,-232.6 -188.6,-421.2 -421.2,-421.2zM357.5,528.7l30.6,-105.7 105.7,-30.6 -105.7,-30.6 -30.6,-105.7 -30.5,105.7 -105.7,30.6 105.7,30.6z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024.0"
|
||||
android:viewportWidth="1024.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#ffffff" android:pathData="M965.5,224.4a525.6,525.6 0,0 0,-45.4 -62c-37.3,-43.9 -84.2,-76.7 -131.1,-108.9a605.2,605.2 0,0 0,-81.5 -48.4c-31.5,-14.8 -54.2,4.5 -49.8,38.7a313.4,313.4 0,0 1,2.8 43c-0.4,50.6 -18.2,91.9 -65.6,116.1 -47.2,24.2 -93.2,22.1 -138.1,-6.5 -8.3,-5.3 -16.6,-10.7 -25.6,-14.7 -29.2,-13.2 -54.2,-4.3 -67.6,24.9 -8.6,18.9 -15.2,38.6 -22.8,57.9 -42.5,108.7 -84.8,217.5 -127.7,325.9a104.1,104.1 0,0 1,-16.8 27.6c-24.9,30.1 -52.3,58.3 -75.8,89.5 -32.6,43.4 -57.6,91.2 -67.2,145.6 -9.9,55.8 2.3,103.2 48,141.2 42,34.9 56.2,38.3 104.1,10.6 63.4,-36.6 119,-83.8 171.5,-134.3 59.7,-57.2 117.4,-116.7 175.9,-175.2a55.8,55.8 0,0 1,0.8 0.7c65.6,-68.2 131.4,-136.4 196.8,-204.7 69.6,-72.7 139,-145.6 208.4,-218.3 17.1,-17.9 19.6,-27.6 6.5,-48.6zM801.1,105.7l96.1,83.9 -119.9,134.2c-3.8,-13 -8.1,-22.5 -9.2,-32.4 -7,-63.3 12.1,-122.1 33,-185.7zM457.2,241.8c65.8,27.2 127.2,20.7 183.1,-23.3 57.7,-45.3 62.2,-108.7 56.9,-179.4 29.5,19.4 56.3,36.6 82.6,54.6 1.9,1.3 2.2,7 1.3,10.2 -9.6,35.3 -19.3,70.6 -29.5,105.7a22.3,22.3 0,0 1,-7.4 10.3,590.7 590.7,0 0,1 -198.2,104.7c-25.7,7.8 -41.9,28.4 -55.9,49.1a3415,3415 0,0 0,-97.5 152.3c-14.5,23.9 -32.6,36 -62,34.5 33.3,-110 77.3,-214.5 126.5,-318.7zM733,278.9a596.3,596.3 0,0 1,-172.7 90.5c-19.6,6.4 -37.9,25.8 -50.3,43.7 -35.7,51.6 -69,104.9 -101.2,158.7 -11.4,19.2 -25.8,29 -46.9,30.8 -15.7,1.3 -31.4,2.3 -47.5,3.5 3.8,-23.3 4.7,-24.1 24.8,-25.3 29,-1.8 51.1,-13 66.8,-39.5 29.5,-49.8 61.4,-98.2 92.6,-146.8a127.9,127.9 0,0 1,23.2 -28.8c11.3,-9.6 24.1,-19.4 37.9,-24a624.7,624.7 0,0 0,179.6 -93.2c1.5,-1.2 3.2,-2.1 6.5,-4.3 3.1,15.8 -1,26.1 -12.8,34.9zM335.5,624.6c7.7,1.2 15.7,-1.1 23.7,-1.6 30.3,-2.2 52.1,-15.8 67.9,-43 28.5,-49.1 59.5,-96.8 89.9,-144.8 6.6,-10.4 14,-20.9 23.2,-28.8 10.2,-8.8 21.9,-17.4 34.5,-21.2 63.4,-19.3 119.3,-51.9 171.7,-92.1l16.4,44.6c-9.1,10.4 -19.1,22.5 -29.9,34 -57.4,60.9 -114.7,122 -172.8,182.3 -49.5,51.3 -99.6,102.1 -150.6,152 -29.7,29.1 -61.6,56 -92.1,84.2 -8.3,7.7 -16,7.7 -23.2,0.3 -23.3,-24.1 -46,-48.6 -69.1,-73l55.3,-60.6c2,-2.2 4.7,-4.2 5.8,-6.8 9,-23.2 26.5,-28.8 49.4,-25.4zM399.3,221.9c1.5,-3.5 9.9,-5.7 15,-5.4 4.9,0.3 9.6,4.7 14.4,7 9.5,4.5 11,10.5 6.1,20.1 -9.3,18.4 -17.5,37.4 -26.7,57.2l-35.9,-11.2c9.1,-23.4 17.4,-45.9 27.1,-67.8zM365.5,308.5l34.3,10.6 -21.5,51.2 -32,-9.4 19.2,-52.4zM339.4,379.5l30.8,9.5 -18.5,48 -30.6,-9.5c6.3,-16.6 12.2,-31.7 18.3,-48zM313.9,446.3l30.7,9.1c-5.9,17.1 -11.3,33.1 -17.1,50.4l-32.6,-10c6.4,-16.4 12.3,-32 19,-49.5zM287.5,514.4l34,10.7 -19,52.4 -36.1,-10.9 21.1,-52.1zM258.3,584.9l36.5,10.9c-6.6,12 -12.3,23.3 -18.9,34.1 -1.3,2.1 -5.8,4 -8.3,3.3 -9.4,-2.4 -18.5,-5.8 -28.3,-9l19,-39.4zM202.7,667c20,-26.5 26.2,-27.9 55.1,-14.1l-45.2,45.2c-1.2,-12.3 -20.8,-16.5 -9.8,-31.1zM96.7,930.3c-9.8,-25.4 -9,-49.2 -4.4,-73.2 10,-52.8 36.8,-97.5 68.4,-139.9 7,-9.4 14.7,-18.2 22.8,-28.2 32.7,44.4 61.7,89.5 107.5,123.4 -61.3,47.2 -118.4,96.9 -194.4,117.9zM910.6,268.2c-43,46 -86.5,91.6 -130.2,136.9 -124.1,128.2 -247.7,257.1 -373,384.1 -62.9,63.9 -129.4,124.2 -205.3,173 -2.1,1.3 -4.2,2.7 -6.4,3.9 -41.4,24.6 -54.2,22 -85.3,-18.3 7.5,-2.8 14.7,-5.4 21.7,-8.2 46.9,-18.7 87.9,-47.5 127.7,-77.8a1817.6,1817.6 0,0 0,201.7 -179.9c97.9,-101.1 195.4,-202.6 292,-305.1 50.3,-53.3 98.2,-108.8 147.3,-163.3 1.6,-1.8 3.4,-3.4 5.9,-5.9 28.9,28.8 29.5,33.3 4,60.6z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="1024.0"
|
||||
android:viewportWidth="1024.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#ec8060" android:pathData="M908.1,322.4c15,-26.5 23.6,-57.1 23.6,-89.7C931.7,132.7 851.2,51.7 751.8,51.7c-57.9,0 -109.4,27.5 -142.3,70.3 123.5,25.7 229.7,99.2 298.6,200.4L908.1,322.4 908.1,322.4zM414.5,122C381.6,79.3 330.1,51.7 272.2,51.7 172.8,51.7 92.3,132.7 92.3,232.7c0,32.6 8.6,63.3 23.6,89.7C184.8,221.2 290.9,147.7 414.5,122L414.5,122zM512,177.6C291.8,177.6 113.3,356.2 113.3,576.4c0,220.2 178.5,398.7 398.7,398.7 220.2,0 398.7,-178.5 398.7,-398.7C910.7,356.2 732.2,177.6 512,177.6zM700.9,625.1l-226.3,-0L474.6,324.8l58.4,0.1 0,237 167.9,0L700.9,625.1zM533,561.9"/>
|
||||
</vector>
|
||||
@@ -1,12 +1,96 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="睡觉" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@color/sleep_bg"
|
||||
app:contentInsetStart="0dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:text="2019-8-18"
|
||||
android:textColor="#FFF"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</android.support.v7.widget.Toolbar>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/sleep_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="200dp"
|
||||
android:layout_gravity="center">
|
||||
|
||||
<me.itangqi.waveloadingview.WaveLoadingView
|
||||
android:id="@+id/waveLoadingView"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="200dp"
|
||||
android:layout_gravity="center"
|
||||
app:wlv_borderColor="#4e60e9"
|
||||
app:wlv_borderWidth="8dp"
|
||||
app:wlv_progressValue="5"
|
||||
app:wlv_round_rectangle="true"
|
||||
app:wlv_shapeType="circle"
|
||||
app:wlv_titleCenter=""
|
||||
app:wlv_titleCenterColor="@android:color/white"
|
||||
app:wlv_titleCenterSize="15sp"
|
||||
app:wlv_titleCenterStrokeColor="#4355d9"
|
||||
app:wlv_titleCenterStrokeWidth="3dp"
|
||||
app:wlv_triangle_direction="north"
|
||||
app:wlv_waveAmplitude="70"
|
||||
app:wlv_waveColor="#293dcf" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="120dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:src="@drawable/ic_moon" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:text="00:00"
|
||||
android:textColor="#FFF"
|
||||
android:textSize="30sp" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.2"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -1,12 +1,364 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="走路" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
</LinearLayout>
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:background="@color/step_bg"
|
||||
app:contentInsetStart="0dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:text="2019-8-18"
|
||||
android:textColor="#FFF"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</android.support.v7.widget.Toolbar>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/step_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="200dp"
|
||||
android:layout_gravity="center">
|
||||
|
||||
<me.itangqi.waveloadingview.WaveLoadingView
|
||||
android:id="@+id/waveLoadingView"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="200dp"
|
||||
android:layout_gravity="center"
|
||||
app:wlv_borderColor="#ef906b"
|
||||
app:wlv_borderWidth="8dp"
|
||||
app:wlv_progressValue="40"
|
||||
app:wlv_round_rectangle="true"
|
||||
app:wlv_shapeType="circle"
|
||||
app:wlv_titleCenter=""
|
||||
app:wlv_titleCenterColor="@android:color/white"
|
||||
app:wlv_titleCenterSize="15sp"
|
||||
app:wlv_titleCenterStrokeColor="#ec5353"
|
||||
app:wlv_titleCenterStrokeWidth="3dp"
|
||||
app:wlv_triangle_direction="north"
|
||||
app:wlv_waveAmplitude="70"
|
||||
app:wlv_waveColor="#f15d5a" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="120dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:src="@drawable/ic_step" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:text="0"
|
||||
android:textColor="#FFF"
|
||||
android:textSize="30sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:text="目标 4000 步"
|
||||
android:textColor="#FFF"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:text="完成 0%"
|
||||
android:textColor="#FFF"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1.2"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:src="@drawable/ic_calorie" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:orientation="vertical"
|
||||
android:paddingRight="10dp">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:text="消耗"
|
||||
android:textColor="@color/step_bg"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/calorie_holder"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:text="千卡"
|
||||
android:textColor="@color/step_bg"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/calorie_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_toLeftOf="@+id/calorie_holder"
|
||||
android:text="0"
|
||||
android:textColor="#e77554"
|
||||
android:textSize="20sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<me.zhouzhuo.zzhorizontalprogressbar.ZzHorizontalProgressBar
|
||||
android:id="@+id/calorie_pb"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginTop="10dp"
|
||||
app:zpb_bg_color="@color/place_holder"
|
||||
app:zpb_max="100"
|
||||
app:zpb_padding="0dp"
|
||||
app:zpb_pb_color="@color/step_bg"
|
||||
app:zpb_progress="30" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/place_holder" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:src="@drawable/ic_distance" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:orientation="vertical"
|
||||
android:paddingRight="10dp">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:text="距离"
|
||||
android:textColor="@color/step_bg"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/distance_holder"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:text="公里"
|
||||
android:textColor="@color/step_bg"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/distance_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_toLeftOf="@+id/distance_holder"
|
||||
android:text="0.0"
|
||||
android:textColor="#e77554"
|
||||
android:textSize="20sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<me.zhouzhuo.zzhorizontalprogressbar.ZzHorizontalProgressBar
|
||||
android:id="@+id/distance_pb"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginTop="10dp"
|
||||
app:zpb_bg_color="@color/place_holder"
|
||||
app:zpb_max="100"
|
||||
app:zpb_padding="0dp"
|
||||
app:zpb_pb_color="@color/step_bg"
|
||||
app:zpb_progress="30" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/place_holder" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:src="@drawable/ic_time" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="5"
|
||||
android:orientation="vertical"
|
||||
android:paddingRight="10dp">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:text="时长"
|
||||
android:textColor="@color/step_bg"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/time_holder"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:text=""
|
||||
android:textColor="@color/step_bg"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/time_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_toLeftOf="@+id/time_holder"
|
||||
android:text="00:00"
|
||||
android:textColor="#e77554"
|
||||
android:textSize="20sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<me.zhouzhuo.zzhorizontalprogressbar.ZzHorizontalProgressBar
|
||||
android:id="@+id/time_pb"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginTop="10dp"
|
||||
app:zpb_bg_color="@color/place_holder"
|
||||
app:zpb_max="100"
|
||||
app:zpb_padding="0dp"
|
||||
app:zpb_pb_color="@color/step_bg"
|
||||
app:zpb_progress="30" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/place_holder" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
@@ -4,5 +4,11 @@
|
||||
<color name="colorPrimaryDark">#303F9F</color>
|
||||
<color name="colorAccent">#FF4081</color>
|
||||
|
||||
<color name="choosed">#3F51B5</color>
|
||||
<color name="step_bg">#ec8060</color>
|
||||
<color name="step_string">#e66d4a</color>
|
||||
<color name="sleep_bg">#3d4eca</color>
|
||||
<color name="heart_rate_bg">#d63f9c</color>
|
||||
<color name="environment_bg">#5adeb2</color>
|
||||
|
||||
<color name="place_holder">#dfdede</color>
|
||||
</resources>
|
||||
|
||||
1
android/图标/卡路里.svg
Normal file
1
android/图标/卡路里.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1566111606660" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9654" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512 2.159196C230.86636 2.159196 2.159196 230.86636 2.159196 512 2.159196 793.1353 230.86636 1021.840804 512 1021.840804c281.1353 0 509.840804-228.705504 509.840804-509.840804C1021.840804 230.86636 793.1353 2.159196 512 2.159196z m177.220045 568.167313c-18.315825 69.346541-83.26763 110.123981-116.229808 110.12398 5.614574-62.020875-65.4414-66.417271-66.662898-148.705711-22.707241 21.001128-74.229212 107.441997-40.289504 154.323604-134.056039-41.511002-110.371267-209.994684-64.707838-269.577542 4.638703 22.464934 20.021938 34.918898 20.021938 34.918897 8.301536-8.547164 23.440804-25.639831 36.628331-47.125575 25.394204-41.511002 32.231935-79.848765 20.265906-113.790133l-5.128298-15.627202 14.89364 6.592103c29.7906 13.429835 53.720998 28.81307 71.303261 45.419462 15.383235 14.649673 26.370075 31.010438 32.231935 48.345414 9.033439 26.127767 6.348136 51.279663 2.195708 72.033504 22.952869-11.476434 28.325135-47.371203 28.325135-47.371203s97.674995 54.452901 67.152492 170.440402z" fill="" p-id="9655"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
1
android/图标/月亮.svg
Normal file
1
android/图标/月亮.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1566178898269" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3624" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M511.419 91.092c-59.581 0-116.19 12.523-167.558 34.845 17.183-2.843 34.734-4.692 52.727-4.692 177.878 0 322.111 144.216 322.111 322.094 0 177.913-144.233 322.094-322.111 322.094-141.489 0-261.384-91.362-304.634-218.21 17.79 216.277 198.613 386.333 419.465 386.333 232.631 0 421.237-188.572 421.237-421.237 0.001-232.64-188.604-421.228-421.236-421.228zM357.498 528.675l30.6-105.716 105.699-30.558-105.699-30.583-30.6-105.699-30.549 105.699-105.709 30.583 105.709 30.558z" p-id="3625" fill="#ffffff"></path></svg>
|
||||
|
After Width: | Height: | Size: 888 B |
1
android/图标/距离.svg
Normal file
1
android/图标/距离.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1566111617114" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10387" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M537.0624 23.7056c268.6464 0 486.4 217.7792 486.4 486.4 0 268.6464-217.7536 486.4-486.4 486.4-268.6208 0-486.4-217.7536-486.4-486.4C50.6624 241.4848 268.416 23.7056 537.0624 23.7056zM708.1728 334.7968l-427.6224 151.5776 209.3056 64.4864 72.96 217.8048 146.56-435.0208L708.1728 334.7968z" p-id="10388"></path></svg>
|
||||
|
After Width: | Height: | Size: 692 B |
1
android/图标/闹钟.svg
Normal file
1
android/图标/闹钟.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1566111649550" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13030" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M908.070788 322.43846499c15.01995999-26.459798 23.625697-57.080242 23.625697-89.71636399C931.697778 132.746343 851.176727 51.717172 751.824162 51.717172c-57.914182 0-109.419313 27.544566-142.303677 70.312081 123.545859 25.677576 229.722505 99.167677 298.586505 200.40921199L908.070788 322.43846499 908.070788 322.43846499zM414.510545 122.029253C381.626182 79.261737 330.091313 51.717172 272.177131 51.717172 172.823273 51.717172 92.303515 132.746343 92.303515 232.722101c0 32.636121 8.600566 63.282424 23.625697 89.71636399C184.78803999 221.196929 290.940121 147.706828 414.510545 122.029253L414.510545 122.029253zM512 177.63038399C291.798626 177.630384 113.287758 356.15159599 113.287758 576.363313c0 220.210424 178.510869 398.73163599 398.712242 398.731636 220.202667 0 398.712242-178.519919 398.712242-398.731636C910.712242 356.15159599 732.202667 177.63038399 512 177.63038399zM700.864646 625.136485l-226.257455-0.03103L474.607192 324.827798l58.378343 0.055596 0 237.005576 167.879111 0L700.864646 625.136485zM532.985535 561.88897" fill="#272636" p-id="13031"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
1
android/图标/鞋子.svg
Normal file
1
android/图标/鞋子.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 6.3 KiB |
Reference in New Issue
Block a user