float button
This commit is contained in:
@@ -210,13 +210,16 @@ public class MainActivity extends BaseActivity {
|
||||
* 初始化悬浮按钮
|
||||
*/
|
||||
private void initBMB() {
|
||||
for (int i = 0; i < boomMenuButton.getPiecePlaceEnum().pieceNumber(); i++) {
|
||||
HamButton.Builder builder = new HamButton.Builder()
|
||||
.normalImageRes(R.drawable.ic_bmi)
|
||||
.normalTextRes(R.string.app_name)
|
||||
.subNormalTextRes(R.string.self_information);
|
||||
boomMenuButton.addBuilder(builder);
|
||||
}
|
||||
|
||||
HamButton.Builder builder = new HamButton.Builder()
|
||||
.normalImageRes(R.drawable.food_material)
|
||||
.normalTextRes(R.string.food_meterial_title);
|
||||
boomMenuButton.addBuilder(builder);
|
||||
HamButton.Builder builder2 = new HamButton.Builder()
|
||||
.normalImageRes(R.drawable.foods)
|
||||
.normalTextRes(R.string.food_title);
|
||||
boomMenuButton.addBuilder(builder2);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BIN
app/src/main/res/drawable/food_material.jpg
Normal file
BIN
app/src/main/res/drawable/food_material.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 122 KiB |
BIN
app/src/main/res/drawable/foods.jpg
Normal file
BIN
app/src/main/res/drawable/foods.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 112 KiB |
@@ -167,8 +167,8 @@
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
app:bmb_buttonEnum="ham"
|
||||
app:bmb_buttonPlaceEnum="buttonPlace_ham_4"
|
||||
app:bmb_piecePlaceEnum="piecePlace_ham_4" />
|
||||
app:bmb_buttonPlaceEnum="buttonPlace_ham_2"
|
||||
app:bmb_piecePlaceEnum="piecePlace_ham_2" />
|
||||
</RelativeLayout>
|
||||
|
||||
<!--menu-->
|
||||
|
||||
@@ -104,8 +104,8 @@
|
||||
|
||||
<me.itangqi.waveloadingview.WaveLoadingView
|
||||
android:id="@+id/waveLoadingView"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="90dp"
|
||||
app:wlv_borderColor="#ff5b20"
|
||||
app:wlv_borderWidth="3dp"
|
||||
app:wlv_progressValue="40"
|
||||
|
||||
@@ -3,4 +3,6 @@
|
||||
<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>
|
||||
<string name="food_meterial_title">食材识别</string>
|
||||
<string name="food_title">菜品识别</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user