information bar
This commit is contained in:
@@ -53,4 +53,6 @@ dependencies {
|
||||
implementation 'me.itangqi.waveloadingview:library:0.3.5'
|
||||
//计步
|
||||
implementation project(':todaystepcounterlib')
|
||||
//打分ui
|
||||
compile 'com.github.CB-ysx:CBRatingBar:3.0.1'
|
||||
}
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
package com.example.ninefourone.nutritionmaster.modules;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.graphics.Color;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.ToxicBakery.viewpager.transforms.CubeOutTransformer;
|
||||
import com.cb.ratingbar.CBRatingBar;
|
||||
import com.example.ninefourone.nutritionmaster.R;
|
||||
import com.example.ninefourone.nutritionmaster.adapter.HomePagerAdapter;
|
||||
import com.example.ninefourone.nutritionmaster.base.BaseActivity;
|
||||
import com.example.ninefourone.nutritionmaster.ui.NoScrollViewPager;
|
||||
import com.example.ninefourone.nutritionmaster.utils.MessageUtils;
|
||||
import com.flyco.tablayout.SlidingTabLayout;
|
||||
import com.mxn.soul.flowingdrawer_core.ElasticDrawer;
|
||||
import com.mxn.soul.flowingdrawer_core.FlowingDrawer;
|
||||
@@ -32,6 +34,8 @@ public class MainActivity extends BaseActivity {
|
||||
SlidingTabLayout slidingTabLayout;
|
||||
@BindView(R.id.bar_cover)
|
||||
FrameLayout barCover;
|
||||
@BindView(R.id.cb_rating_bar)
|
||||
CBRatingBar cbRatingBar;
|
||||
|
||||
|
||||
@Override
|
||||
@@ -58,6 +62,7 @@ public class MainActivity extends BaseActivity {
|
||||
// Logger.i("openRatio=" + openRatio + " ,offsetPixels=" + offsetPixels);
|
||||
}
|
||||
});
|
||||
|
||||
initViewPager();
|
||||
}
|
||||
|
||||
|
||||
@@ -38,8 +38,6 @@ public class BodyInformationFragment extends BaseFragment {
|
||||
|
||||
@BindView(R.id.progress_1)
|
||||
RoundCornerProgressBar progress1;
|
||||
@BindView(R.id.progress_2)
|
||||
IconRoundCornerProgressBar progress2;
|
||||
Unbinder unbinder;
|
||||
@BindView(R.id.step_text_view)
|
||||
TextView stepTextView;
|
||||
@@ -73,13 +71,6 @@ public class BodyInformationFragment extends BaseFragment {
|
||||
progress1.setMax(70);
|
||||
progress1.setProgress(15);
|
||||
|
||||
progress2.setProgressColor(Color.parseColor("#56d2c2"));
|
||||
progress2.setProgressBackgroundColor(Color.parseColor("#757575"));
|
||||
progress2.setIconBackgroundColor(Color.parseColor("#38c0ae"));
|
||||
progress2.setMax(550);
|
||||
progress2.setProgress(147);
|
||||
progress2.setIconImageResource(R.drawable.test_avatar);
|
||||
|
||||
|
||||
initStepCounter();
|
||||
// Logger.d(((MainActivity)getActivity()).getStepCount());
|
||||
|
||||
6
app/src/main/res/drawable/ic_bmi.xml
Normal file
6
app/src/main/res/drawable/ic_bmi.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<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="#35c4f9" android:pathData="M512,1024C229.7,1024 0,794.3 0,512S229.7,0 512,0s512,229.7 512,512 -229.7,512 -512,512zM512,64C265,64 64,265 64,512c0,247 201,448 448,448s448,-201 448,-448c0,-247 -201,-448 -448,-448z"/>
|
||||
<path android:fillColor="#35c4f9" android:pathData="M323.4,635.7L247.7,635.7c-10.9,0 -18.7,-2.4 -23.4,-7.3 -4.7,-4.9 -7,-12.7 -7,-23.4v-186.1c0,-10.9 2.4,-18.8 7.2,-23.6 4.8,-4.8 12.5,-7.2 23.2,-7.2h80.2c11.8,0 22.1,0.7 30.8,2.2 8.6,1.5 16.4,4.3 23.3,8.4a60.6,60.6 0,0 1,25.8 31c2.4,6.5 3.5,13.3 3.5,20.5 0,24.8 -12.4,42.9 -37.2,54.4 32.5,10.4 48.8,30.5 48.8,60.5 0,13.9 -3.5,26.3 -10.7,37.4a63.8,63.8 0,0 1,-28.7 24.6,100.7 100.7,0 0,1 -26,6.7 265.9,265.9 0,0 1,-34.2 1.9zM267.5,425.9v64h45.9c12.5,0 22.1,-1.2 29,-3.6a27.3,27.3 0,0 0,15.6 -13.5,30.1 30.1,0 0,0 4.3,-15.9c0,-12.5 -4.4,-20.8 -13.3,-24.9 -8.9,-4.1 -22.5,-6.1 -40.7,-6.1L267.5,425.9zM319.6,525.9h-52.2v72.3h53.9c33.9,0 50.8,-12.2 50.8,-36.7 0,-12.5 -4.4,-21.6 -13.2,-27.2s-21.9,-8.4 -39.4,-8.4zM550,598.5l-39.7,-157.8v170.9c0,9.4 -2.1,16.5 -6.4,21.2a21.3,21.3 0,0 1,-16.8 7.1,21.4 21.4,0 0,1 -16.6,-7c-4.3,-4.7 -6.4,-11.8 -6.4,-21.3v-195.9c0,-10.8 2.8,-18.1 8.4,-21.9 5.6,-3.8 13.2,-5.7 22.8,-5.7h15.5c9.3,0 16.1,0.8 20.4,2.5s7.3,4.7 9.3,9.1c2,4.4 4.4,11.5 6.9,21.4l36,135.6 35.9,-135.6c2.6,-9.9 4.9,-17.1 6.9,-21.4a16.9,16.9 0,0 1,9.4 -9.1c4.2,-1.7 11,-2.5 20.4,-2.5h15.5c9.6,0 17.2,1.9 22.8,5.7 5.6,3.7 8.4,11.1 8.4,21.9v195.9c0,9.4 -2.1,16.5 -6.3,21.2a21.6,21.6 0,0 1,-17 7.1,21 21,0 0,1 -16.4,-7.1c-4.3,-4.7 -6.4,-11.8 -6.4,-21.2v-170.9l-39.7,157.8c-2.6,10.2 -4.7,17.7 -6.3,22.5a31.4,31.4 0,0 1,-9 13.1c-4.4,4 -10.5,6 -18.2,6 -5.9,0 -10.8,-1.3 -14.9,-3.8s-7.2,-5.8 -9.5,-9.7a54.9,54.9 0,0 1,-5.3 -13.1c-1.3,-4.8 -2.6,-9.8 -3.9,-14.9zM756.5,609.4v-195.1c0,-10.1 2.3,-17.7 6.9,-22.8s10.6,-7.6 17.9,-7.6a24,24 0,0 1,18.4 7.5c4.7,5 7,12.7 7,22.9v195.1c0,10.2 -2.3,17.9 -7,22.9a23.9,23.9 0,0 1,-18.4 7.6c-7.2,0 -13.1,-2.6 -17.8,-7.7s-7,-12.8 -7,-22.9z"/>
|
||||
<path android:fillColor="#35c4f9" android:pathData="M512,128c211.7,0 384,172.3 384,384 0,211.7 -172.3,384 -384,384S128,723.7 128,512C128,300.3 300.3,128 512,128m0,-32C282.2,96 96,282.2 96,512s186.2,416 416,416 416,-186.2 416,-416S741.8,96 512,96z"/>
|
||||
</vector>
|
||||
5
app/src/main/res/drawable/ic_height.xml
Normal file
5
app/src/main/res/drawable/ic_height.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<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="#35c4f9" android:pathData="M443.9,597.3H482v142.6h-38.1z"/>
|
||||
<path android:fillColor="#35c4f9" android:pathData="M511.3,64.2c-247.4,0 -448,200.6 -448,448s200.6,448 448,448 448,-200.6 448,-448 -200.5,-448 -448,-448zM647.7,450.4c0,-7.9 6.4,-14.3 14.3,-14.3s14.3,6.4 14.3,14.3v96.4c0,7.9 -6.4,14.3 -14.3,14.3s-14.3,-6.4 -14.3,-14.3v-96.4zM463,307.3c28.5,0 51.8,23.3 51.8,51.8 0,28.5 -23.3,51.8 -51.8,51.8 -28.5,0 -51.8,-23.3 -51.8,-51.8 -0.1,-28.5 23.3,-51.8 51.8,-51.8zM725.1,754.3c0,7.9 -6.4,14.3 -14.3,14.3L310.3,768.6c-7.9,0 -14.3,-6.4 -14.3,-14.3s6.4,-14.3 14.3,-14.3h109.1L419.4,449.9c-69.2,-19 -120.4,-82.1 -121,-157.1v-0.1c0,-5.9 4.8,-10.7 10.7,-10.7 5.9,0 10.7,4.8 10.7,10.7 0.7,78.3 64.6,141.8 143.1,141.8S605.3,371 606,292.7c0,-5.9 4.8,-10.7 10.7,-10.7 5.9,0 10.7,4.8 10.7,10.7 -0.6,75.1 -51.8,138.2 -121,157.3v290h190L696.4,389.7c0,-7.9 6.4,-14.3 14.3,-14.3s14.3,6.4 14.3,14.3v364.6zM725.1,337.1c0,7.9 -6.4,14.3 -14.3,14.3s-14.3,-6.4 -14.3,-14.3v-40.9c0,-7.9 6.4,-14.3 14.3,-14.3s14.3,6.4 14.3,14.3v40.9z"/>
|
||||
</vector>
|
||||
5
app/src/main/res/drawable/ic_score.xml
Normal file
5
app/src/main/res/drawable/ic_score.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<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="#35c4f9" android:pathData="M512,1024C229.2,1024 0,794.8 0,512S229.2,0 512,0s512,229.2 512,512 -229.2,512 -512,512zM512,983c260.1,0 471,-210.9 471,-471C983,251.9 772.1,41 512,41 251.9,41 41,251.9 41,512c0,260.1 210.9,471 471,471z"/>
|
||||
<path android:fillColor="#35c4f9" android:pathData="M640,341.3L640,277.3a21.3,21.3 0,1 1,42.7 0L682.7,341.3h64a21.3,21.3 0,1 1,0 42.7L682.7,384v64a21.3,21.3 0,1 1,-42.7 0L640,384h-64a21.3,21.3 0,1 1,0 -42.7L640,341.3zM607.1,690.9a28.2,28.2 0,0 1,1.1 7.8,26.2 26.2,0 0,1 -8,19.1 26.8,26.8 0,0 1,-19.7 8.1c-13.3,0 -22,-6.5 -26.1,-19.4l-17.7,-60.5c-0.4,-1.8 -1.7,-2.8 -3.9,-2.8L407.4,643.2c-2.2,0 -3.5,0.9 -3.9,2.8l-17.7,60.5c-4.1,12.9 -12.8,19.4 -26.1,19.4a26.8,26.8 0,0 1,-19.7 -8.1,26.2 26.2,0 0,1 -8,-19.1 28.2,28.2 0,0 1,1.1 -7.8l110.9,-376.6c3.7,-12.9 12.4,-19.4 26.1,-19.4 13.7,0 22.4,6.5 26.1,19.4l110.9,376.6zM518.9,585.6l-47.7,-162.5c0,-0.7 -0.4,-1.1 -1.1,-1.1s-1.1,0.4 -1.1,1.1l-47.7,162.5c-0.7,1.8 0,2.8 2.2,2.8h93.2c2.2,0 3,-0.9 2.2,-2.8z"/>
|
||||
</vector>
|
||||
6
app/src/main/res/drawable/ic_weight.xml
Normal file
6
app/src/main/res/drawable/ic_weight.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<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="#35c4f9" android:pathData="M652.8,278.7a137.5,137.5 0,0 0,-102 -46.9h-79.3a137.5,137.5 0,0 0,-102 46.9l-127,142.8a18.4,18.4 0,0 0,0 25.5l43.4,43.4a17.3,17.3 0,0 0,13.3 5.4,16.8 16.8,0 0,0 12.5,-6.1l90.5,-106.1v467.3a17.6,17.6 0,0 0,17.6 17.9h60.7a17.6,17.6 0,0 0,17.6 -17.9V578.7h25.5v272.2a17.6,17.6 0,0 0,17.6 17.9h60.5a17.6,17.6 0,0 0,17.6 -17.9V383.5l90.5,106.1a17.9,17.9 0,0 0,12.8 6.1,17.6 17.6,0 0,0 13,-5.4l42.9,-43.9a18.4,18.4 0,0 0,0 -25.5l-126,-142.8zM510.2,205.8a100,100 0,0 0,98.5 -102,98.7 98.7,0 1,0 -197.2,0 100.2,100.2 0,0 0,98.7 102z"/>
|
||||
<path android:fillColor="#35c4f9" android:pathData="M879.6,800.1c-46.7,-37.5 -124.7,-56.9 -177.3,-66.6a29.8,29.8 0,0 0,-36.2 25.5,30.4 30.4,0 0,0 25.5,36.7 378.5,378.5 0,0 1,138.5 46.2c19.9,12.8 27.8,25.5 27.8,31.1a16.3,16.3 0,0 1,-3.3 9.2c-21.2,31.6 -140.3,82.9 -344.3,82.9 -224.2,0 -347.1,-58.7 -347.1,-91.8 0,-14.8 39.8,-55.3 162.7,-76.5a30.4,30.4 0,0 0,25.5 -36.7,29.8 29.8,0 0,0 -36.2,-25.5c-79.6,14.5 -213.2,51 -213.2,135.9C102.1,973 304.7,1024 506.9,1024c202.5,0 408.1,-51 412.2,-150.7v-7.9,-3.1"/>
|
||||
<path android:fillColor="#35c4f9" android:pathData="M514.3,1024C716.9,1024 918.4,973 918.4,869.4c0,-84.4 -133.7,-121.4 -213.2,-135.9a29.8,29.8 0,0 0,-36.2 25.5,30.4 30.4,0 0,0 25.5,36.7c122.7,21.9 162.5,62.5 162.5,76.5 0,33.2 -122.7,91.8 -346.9,91.8"/>
|
||||
</vector>
|
||||
6
app/src/main/res/drawable/icon_black.xml
Normal file
6
app/src/main/res/drawable/icon_black.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<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="M620.1,338.7c-31,-11 -63.7,-16.5 -97.1,-16.5 -16.8,0 -39.3,3.1 -66.8,9.3 -7.5,1.7 -12.2,9.1 -10.5,16.5 1.7,7.5 9.1,12.2 16.6,10.5 25.2,-5.6 46.2,-8.6 60.8,-8.6 30.3,0 59.9,5 87.9,14.9 1.5,0.5 3.1,0.8 4.6,0.8 5.7,0 11.1,-3.5 13.1,-9.2C631.1,349.1 627.3,341.2 620.1,338.7z"/>
|
||||
<path android:fillColor="#ffffff" android:pathData="M350.3,389.2c-8.6,0 -15.6,13 -15.6,29.1s7,29.1 15.6,29.1 15.6,-13 15.6,-29.1S358.9,389.2 350.3,389.2z"/>
|
||||
<path android:fillColor="#ffffff" android:pathData="M512.1,65.5C265.7,65.5 65.9,265.3 65.9,511.8c0,246.5 199.8,446.3 446.3,446.3 246.5,0 446.3,-199.8 446.3,-446.3C958.4,265.3 758.6,65.5 512.1,65.5zM818.2,617.9c-9.5,-0.7 -27.9,-3.9 -48.4,-18.4 -6.1,22.7 -15.9,45.6 -29.7,68.2 -8,13.1 -44.8,74.9 -64,74.9 -30,0 -76,0 -76,0 -7.6,0 -13.1,-6.5 -12.2,-14l1.2,-19.3c0.1,-7.6 -6,-12.8 -13.5,-11.5 0,0 -32.8,5.8 -57.5,5.8 -16.3,0 -35.1,-2.2 -35.1,-2.2 -7.6,-0.9 -15.2,4.5 -16.9,12l-4.5,15.8c-2.4,7.2 -10.7,13.4 -18.3,13.4l-62.2,0c-7.6,0 -13.4,-6.5 -12.8,-14.1l-0.8,-52.1c-0.9,-7.6 -4.1,-15.4 -7.2,-17.3 0,0 -0,0 -2.8,-1.8 -42.1,-28 -55.3,-71.7 -108.1,-71.8 -13,-0 -18.6,-14.5 -18.6,-14.5 -2.7,-7.1 -5.2,-19.2 -5.2,-26.8l0,-56.1c0,-7.6 2.4,-19.7 5.2,-26.8 0,0 5.8,-14.5 18.8,-14.5 38.3,0 34.4,-25.8 54.9,-52.8 9.6,-12.6 24.8,-25.6 24.8,-25.6 5.8,-5 6.9,-14.1 2.6,-20.4 0,0 -34.6,-49.5 -44.7,-62.1 -2.4,-3 -1.3,-5.3 2.6,-5.1 48.4,3.2 95.8,36.2 95.8,36.2 6.2,4.4 17.3,6.1 24.6,3.9 0,0 67,-20.4 107.9,-20.4 122.4,0 223.4,78.3 251.7,180.9 6.8,24.6 9.4,50.7 7.1,77.4 9.4,18.3 25.9,46.6 41.8,56.2C822.1,617.1 822.1,618.2 818.2,617.9z"/>
|
||||
</vector>
|
||||
BIN
app/src/main/res/drawable/icon_colorful.png
Normal file
BIN
app/src/main/res/drawable/icon_colorful.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 62 KiB |
@@ -122,31 +122,385 @@
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="150dp"
|
||||
android:background="@color/colorPrimary"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.github.siyamed.shapeimageview.CircularImageView
|
||||
android:id="@+id/drawer_user_avatar"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:src="@drawable/test_avatar" />
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginTop="10dp">
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
<LinearLayout
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="ScorpioMiku"
|
||||
android:textColor="#FFF" />
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.github.siyamed.shapeimageview.CircularImageView
|
||||
android:id="@+id/drawer_user_avatar"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:src="@drawable/test_avatar" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginTop="10dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:text="ScorpioMiku"
|
||||
android:textColor="#FFF" />
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="120dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:alpha="0.2"
|
||||
android:src="@drawable/icon_black" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="5dp" />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="36dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="65dp"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@drawable/ic_score" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="10dp"
|
||||
android:text="体质"
|
||||
android:textColor="@color/colorPrimary"
|
||||
android:textSize="8sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<com.cb.ratingbar.CBRatingBar
|
||||
android:id="@+id/cb_rating_bar"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="15dp"
|
||||
android:layout_marginTop="3dp"
|
||||
app:starCanTouch="true"
|
||||
app:starCount="5"
|
||||
app:starCoverDir="left_to_right"
|
||||
app:starEndColor="#2a00ff"
|
||||
app:starFillColor="#c6c6c6"
|
||||
app:starMaxProgress="120"
|
||||
app:starPathData="@string/pig"
|
||||
app:starProgress="60"
|
||||
app:starShowStroke="false"
|
||||
app:starSize="20dp"
|
||||
app:starSpace="10dp"
|
||||
app:starStartColor="#30e2f5"
|
||||
app:starStrokeWidth="1dp"
|
||||
app:starUseGradient="true" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="65dp"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="4"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@drawable/ic_bmi" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="10dp"
|
||||
android:text="BMI值"
|
||||
android:textColor="@color/colorPrimary"
|
||||
android:textSize="8sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="8dp"
|
||||
android:background="@color/color_bar_self" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="8dp"
|
||||
android:text="@string/self_information"
|
||||
android:textSize="5sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="8dp"
|
||||
android:background="@color/color_bar_deeper" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="8dp"
|
||||
android:text="@string/standrad_information"
|
||||
android:textSize="5sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.5" />
|
||||
</LinearLayout>
|
||||
|
||||
<com.akexorcist.roundcornerprogressbar.RoundCornerProgressBar
|
||||
android:layout_width="145dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="15dp"
|
||||
android:layout_marginTop="3dp"
|
||||
app:rcBackgroundColor="@color/color_bar_background"
|
||||
app:rcBackgroundPadding="5dp"
|
||||
app:rcMax="100"
|
||||
app:rcProgress="56.6"
|
||||
app:rcProgressColor="@color/color_bar_self"
|
||||
app:rcRadius="10dp"
|
||||
app:rcReverse="false"
|
||||
app:rcSecondaryProgress="74.1"
|
||||
app:rcSecondaryProgressColor="@color/color_bar_deeper" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="65dp"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="4"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@drawable/ic_height" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="10dp"
|
||||
android:text="身高"
|
||||
android:textColor="@color/colorPrimary"
|
||||
android:textSize="8sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="8dp"
|
||||
android:background="@color/color_bar_self" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="8dp"
|
||||
android:text="@string/self_information"
|
||||
android:textSize="5sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="8dp"
|
||||
android:background="@color/color_bar_deeper" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="8dp"
|
||||
android:text="@string/standrad_information"
|
||||
android:textSize="5sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.5" />
|
||||
</LinearLayout>
|
||||
|
||||
<com.akexorcist.roundcornerprogressbar.RoundCornerProgressBar
|
||||
android:layout_width="145dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="15dp"
|
||||
android:layout_marginTop="3dp"
|
||||
app:rcBackgroundColor="@color/color_bar_background"
|
||||
app:rcBackgroundPadding="5dp"
|
||||
app:rcMax="100"
|
||||
app:rcProgress="16.6"
|
||||
app:rcProgressColor="@color/color_bar_self"
|
||||
app:rcRadius="10dp"
|
||||
app:rcReverse="false"
|
||||
app:rcSecondaryProgress="32.1"
|
||||
app:rcSecondaryProgressColor="@color/color_bar_deeper" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="65dp"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="4"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@drawable/ic_weight" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="10dp"
|
||||
android:text="体重"
|
||||
android:textColor="@color/colorPrimary"
|
||||
android:textSize="8sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="8dp"
|
||||
android:background="@color/color_bar_self" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="8dp"
|
||||
android:text="@string/self_information"
|
||||
android:textSize="5sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="8dp"
|
||||
android:background="@color/color_bar_deeper" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="8dp"
|
||||
android:text="@string/standrad_information"
|
||||
android:textSize="5sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.5" />
|
||||
</LinearLayout>
|
||||
|
||||
<com.akexorcist.roundcornerprogressbar.RoundCornerProgressBar
|
||||
android:layout_width="145dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="15dp"
|
||||
android:layout_marginTop="3dp"
|
||||
app:rcBackgroundColor="@color/color_bar_background"
|
||||
app:rcBackgroundPadding="5dp"
|
||||
app:rcMax="100"
|
||||
app:rcProgress="32.6"
|
||||
app:rcProgressColor="@color/color_bar_self"
|
||||
app:rcRadius="10dp"
|
||||
app:rcReverse="false"
|
||||
app:rcSecondaryProgress="56.1"
|
||||
app:rcSecondaryProgressColor="@color/color_bar_deeper" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.mxn.soul.flowingdrawer_core.FlowingMenuLayout>
|
||||
|
||||
@@ -16,15 +16,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp" />
|
||||
|
||||
<com.akexorcist.roundcornerprogressbar.IconRoundCornerProgressBar
|
||||
android:id="@+id/progress_2"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:rcBackgroundColor="#ece9e9"
|
||||
app:rcBackgroundPadding="5dp"
|
||||
app:rcIconPadding="5dp"
|
||||
app:rcIconSize="50dp"
|
||||
app:rcRadius="10dp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -10,6 +10,10 @@
|
||||
|
||||
|
||||
<color name="bar_open">#045ca1</color>
|
||||
<color name="place_holder">#b3b3b3</color>
|
||||
<color name="color_bar_background">#e6e5e5</color>
|
||||
<color name="color_bar_deeper">#52ec2f</color>
|
||||
<color name="color_bar_self">#9ac3f9</color>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<resources>
|
||||
<string name="app_name">NutritionMaster</string>
|
||||
<string name="self_information">当前值</string>
|
||||
<string name="standrad_information">标准值</string>
|
||||
<string name="pig">M1080.3,453.7c-77.2,88.2 -214.6,234.4 -214.6,234.4s22,160.2 35.3,269.7c5.9,55.9 -37.5,80.1 -86,58.1 -92.6,-43.4 -233.7,-111 -265.3,-126.4 -32.3,14.7 -174.2,81.6 -267.5,124.9 -49.2,21.3 -92.6,-2.2 -87.5,-58.1 12.5,-109.5 35.3,-269 35.3,-269S91.1,541.9 13.2,453.7c-27.9,-32.3 -9.6,-77.9 44.8,-86 111.7,-19.8 284.4,-51.4 284.4,-51.4s94.8,-163.1 154.3,-263.1C529.8,-7.8 552.6,-0.4 556.3,1c10.3,2.9 26.5,15.4 47,52.2 58.8,99.9 152.1,263.1 152.1,263.1s170.5,31.6 280.7,51.4c53.6,8.1 71.3,54.4 44.1,86z</string>
|
||||
</resources>
|
||||
|
||||
@@ -21,6 +21,7 @@ allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
maven { url 'https://jitpack.io' }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user