This commit is contained in:
ScorpioMiku
2018-10-07 17:20:43 +08:00
parent e424d14565
commit d98235fb0a
4 changed files with 29 additions and 24 deletions

View File

@@ -0,0 +1,10 @@
package com.example.ninefourone.nutritionmaster.adapter;
import android.support.v7.widget.RecyclerView;
/**
* Created by ScorpioMiku on 2018/10/7.
*/
public class MaterialResultAdapter extends RecyclerView.Adapter {
}

View File

@@ -0,0 +1,10 @@
package com.example.ninefourone.nutritionmaster.adapter;
import android.support.v7.widget.RecyclerView;
/**
* Created by ScorpioMiku on 2018/10/7.
*/
public class MaterialResultHolder extends RecyclerView.ViewHolder {
}

View File

@@ -1,31 +1,8 @@
package com.example.ninefourone.nutritionmaster.bean;
/**
* Created by ScorpioMiku on 2018/9/11.
* Created by ScorpioMiku on 2018/10/7.
*/
public class Material {
private String materialName;
private float weight;
public Material(String materialName, float weight) {
this.materialName = materialName;
this.weight = weight;
}
public String getMaterialName() {
return materialName;
}
public void setMaterialName(String materialName) {
this.materialName = materialName;
}
public float getWeight() {
return weight;
}
public void setWeight(float weight) {
this.weight = weight;
}
}

View File

@@ -0,0 +1,8 @@
<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="M566.1,781.8c-20.9,3 -42.7,4.5 -65,4.5 -22.3,0 -44.1,-1.5 -65,-4.5V801c0,16 -12.9,28.9 -28.9,28.9h-57.8c-16,0 -28.9,-12.9 -28.9,-28.9v-56c-64.8,-35.4 -108.4,-93.2 -114.8,-172.2h-29.4c-16.1,0 -29.2,-13.1 -29.2,-29.2s13.1,-29.2 29.2,-29.2h31.3c19.7,-135.3 143.6,-239.6 293.5,-239.6 44.2,0 86.1,9 123.7,25.3l53.6,-49.2c5.9,-5.4 15,-5 20.4,0.9 3,3.3 4.3,7.7 3.6,12.1l-12.3,74.7c35,27.2 63.1,61.7 81.8,101.1h54.3c16,0 28.9,12.9 28.9,28.9v144.5c0,16 -12.9,28.9 -28.9,28.9h-46.7c-19.4,44.4 -53.7,78.9 -97.8,103v56c0,16 -12.9,28.9 -28.9,28.9H595c-16,0 -28.9,-12.9 -28.9,-28.9v-19.2z"/>
<path android:fillColor="#2F2F33" android:pathData="M652.8,887.7L595,887.7c-32.1,0 -60.5,-17.2 -75.5,-43.9 -12.2,0.4 -24.6,0.4 -36.9,0 -15,26.7 -43.4,43.9 -75.5,43.9h-57.8c-47.8,0 -86.7,-38.9 -86.7,-86.7v-23.9c-53.3,-37.4 -89.5,-88.2 -105.8,-148.6 -38.7,-8.8 -67.6,-43.5 -67.6,-84.8 0,-42.9 31.2,-78.6 72,-85.7 43.6,-140.8 183,-240.9 339.8,-240.9 37.9,0 75,5.6 110.6,16.7l27.7,-25.4c14.2,-13 32.5,-19.8 52,-18.9 19.3,0.8 37.1,9.1 50.1,23.3 15.1,16.5 21.7,38.6 18.1,60.6l-7.1,42.8C773.2,335.9 791.2,358 806.1,381.9h20.1c47.8,0 86.7,38.9 86.7,86.7v144.5c0,47.8 -38.9,86.7 -86.7,86.7L814,699.8c-18.9,29.9 -43.9,55.8 -74.5,77.3L739.5,801c0,47.8 -38.8,86.7 -86.7,86.7zM561.3,783.2l5.5,24.3c2.9,13 14.8,22.5 28.2,22.5h57.8c15.9,0 28.9,-13 28.9,-28.9v-55.4l13.6,-8.5c33.7,-21.1 59.5,-48 76.8,-79.9l8.2,-15.1h45.9c15.9,0 28.9,-13 28.9,-28.9L855.1,468.6c0,-15.9 -13,-28.9 -28.9,-28.9h-53.7l-8.2,-14.9c-15.8,-28.5 -36.6,-54.1 -61.9,-76.1l-12.2,-10.6 12.3,-74.2c0.7,-4.4 -0.6,-8.8 -3.6,-12.1 -3.5,-3.9 -7.8,-4.6 -10,-4.7 -2.4,-0.1 -6.5,0.3 -10.4,3.8l-53.2,48.8 -16.5,-6c-34.3,-12.5 -70.5,-18.9 -107.6,-18.9 -138,0 -259.6,91.4 -289.3,217.3l-5.2,22.3h-30.3c-16.1,0 -29.2,13.1 -29.2,29.2s13.1,29.2 29.2,29.2h28.2l4.4,23.6c10.9,58.7 44.8,107.3 98.1,140.6l13.6,8.5L320.7,801c0,15.9 13,28.9 28.9,28.9h57.8c13.4,0 25.2,-9.4 28.2,-22.5l5.5,-24.3 24.8,1.8c23.1,1.7 47.7,1.7 70.8,0l24.6,-1.7z"/>
<path android:fillColor="#F5BF0D" android:pathData="M479.4,266.3m-130,0a130,130 0,1 0,260 0,130 130,0 1,0 -260,0Z"/>
<path android:fillColor="#2F2F33" android:pathData="M479.4,425.3c-87.6,0 -158.9,-71.3 -158.9,-158.9s71.3,-158.9 158.9,-158.9 158.9,71.3 158.9,158.9 -71.2,158.9 -158.9,158.9zM479.4,165.2c-55.8,0 -101.1,45.4 -101.1,101.1s45.4,101.1 101.1,101.1S580.5,322 580.5,266.3s-45.3,-101.1 -101.1,-101.1z"/>
<path android:fillColor="#2F2F33" android:pathData="M667.3,497.5m-43.3,0a43.3,43.3 0,1 0,86.6 0,43.3 43.3,0 1,0 -86.6,0Z"/>
</vector>