@@ -3,6 +3,9 @@ package com.bonait.bnframework.common.model.mode; | |||
public enum MouthFacingEnum { | |||
原点位, | |||
炒菜位, | |||
炒菜位1, | |||
炒菜位2, | |||
炒菜位3, | |||
维护位, | |||
抽料位, | |||
倒菜位, | |||
@@ -104,6 +104,12 @@ public class HomeFragmentSBKZ extends BaseFragment { | |||
@BindView(R.id.guokoucaoxiang_cc) | |||
imagebuttom3 guokoucaoxiang_cc; | |||
@BindView(R.id.guokoucaoxiang_cc1) | |||
imagebuttom3 guokoucaoxiang_cc1; | |||
@BindView(R.id.guokoucaoxiang_cc2) | |||
imagebuttom3 guokoucaoxiang_cc2; | |||
@BindView(R.id.guokoucaoxiang_cc3) | |||
imagebuttom3 guokoucaoxiang_cc3; | |||
@BindView(R.id.guokoucaoxiang_cl) | |||
imagebuttom3 guokoucaoxiang_cl; | |||
@@ -263,6 +269,9 @@ public class HomeFragmentSBKZ extends BaseFragment { | |||
guokoucaoxiang.mListener = myClickListener; | |||
guokoucaoxiang_cc.mListener = myClickListener; | |||
guokoucaoxiang_cc1.mListener = myClickListener; | |||
guokoucaoxiang_cc2.mListener = myClickListener; | |||
guokoucaoxiang_cc3.mListener = myClickListener; | |||
guokoucaoxiang_cl.mListener = myClickListener; | |||
guokoucaoxiang_dc.mListener = myClickListener; | |||
guokoucaoxiang_qx.mListener = myClickListener; | |||
@@ -535,6 +544,15 @@ public class HomeFragmentSBKZ extends BaseFragment { | |||
case R.id.guokoucaoxiang_cc: | |||
SetMouthFacing(MouthFacingEnum.炒菜位); | |||
break; | |||
case R.id.guokoucaoxiang_cc1: | |||
SetMouthFacing(MouthFacingEnum.炒菜位1); | |||
break; | |||
case R.id.guokoucaoxiang_cc2: | |||
SetMouthFacing(MouthFacingEnum.炒菜位2); | |||
break; | |||
case R.id.guokoucaoxiang_cc3: | |||
SetMouthFacing(MouthFacingEnum.炒菜位3); | |||
break; | |||
case R.id.guokoucaoxiang_cl: | |||
SetMouthFacing(MouthFacingEnum.抽料位); | |||
break; | |||
@@ -715,6 +733,18 @@ public class HomeFragmentSBKZ extends BaseFragment { | |||
ExecuteTheRecipe.BottomClick("炒菜位1"); | |||
guokoucaoxiang.setTag(getString(R.string.btn_pot)+"\n"+getString(R.string.btn_fry)); | |||
break; | |||
case 炒菜位1: | |||
ExecuteTheRecipe.BottomClick("炒菜位1"); | |||
guokoucaoxiang.setTag(getString(R.string.btn_pot)+"\n"+getString(R.string.btn_fry1)); | |||
break; | |||
case 炒菜位2: | |||
ExecuteTheRecipe.BottomClick("炒菜位2"); | |||
guokoucaoxiang.setTag(getString(R.string.btn_pot)+"\n"+getString(R.string.btn_fry2)); | |||
break; | |||
case 炒菜位3: | |||
ExecuteTheRecipe.BottomClick("炒菜位3"); | |||
guokoucaoxiang.setTag(getString(R.string.btn_pot)+"\n"+getString(R.string.btn_fry3)); | |||
break; | |||
case 维护位: | |||
ExecuteTheRecipe.BottomClick("维护位"); | |||
guokoucaoxiang.setTag(getString(R.string.btn_pot)+"\n"+getString(R.string.btn_maintain)); | |||
@@ -437,18 +437,19 @@ | |||
</LinearLayout> | |||
<!-- 锅口朝向 --> | |||
<LinearLayout | |||
android:layout_width="wrap_content" | |||
<RelativeLayout | |||
android:layout_width="200dp" | |||
android:layout_height="wrap_content" | |||
android:layout_alignParentRight="true" | |||
android:layout_marginTop="40dp" | |||
android:layout_marginRight="150dp" | |||
android:layout_marginEnd="150dp" | |||
android:gravity="end" | |||
android:orientation="vertical"> | |||
<com.bonait.bnframework.modules.home.fragment.mode.imagebuttom3 | |||
android:id="@+id/guokoucaoxiang" | |||
android:layout_width="140dp" | |||
android:layout_alignParentEnd="true" | |||
android:layout_height="80dp" | |||
android:contentDescription="true" | |||
android:tag="@string/btn_pot" | |||
@@ -457,6 +458,7 @@ | |||
app:imagesrc_tz="@mipmap/sb3" /> | |||
<LinearLayout | |||
android:layout_below="@id/guokoucaoxiang" | |||
android:id="@+id/guokoucaoxiang_1" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
@@ -489,6 +491,7 @@ | |||
android:contentDescription="true" | |||
android:tag="@string/btn_fry" | |||
app:imagesrc_ks="@mipmap/sb1" | |||
android:visibility="gone" | |||
app:imagesrc_qt="@mipmap/sb2" | |||
app:imagesrc_tz="@mipmap/sb3" /> | |||
@@ -522,8 +525,48 @@ | |||
app:imagesrc_qt="@mipmap/sb2" | |||
app:imagesrc_tz="@mipmap/sb3" /> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:layout_below="@id/guokoucaoxiang" | |||
android:id="@+id/guokoucaoxiang_2" | |||
android:layout_toEndOf="@id/guokoucaoxiang_1" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:orientation="vertical" | |||
tools:visibility="visible" | |||
android:visibility="gone"> | |||
<com.bonait.bnframework.modules.home.fragment.mode.imagebuttom3 | |||
android:id="@+id/guokoucaoxiang_cc1" | |||
android:layout_width="100dp" | |||
android:layout_height="60dp" | |||
android:contentDescription="true" | |||
android:tag="@string/btn_fry1" | |||
app:imagesrc_ks="@mipmap/sb1" | |||
app:imagesrc_qt="@mipmap/sb2" | |||
app:imagesrc_tz="@mipmap/sb3" /> | |||
</LinearLayout> | |||
<com.bonait.bnframework.modules.home.fragment.mode.imagebuttom3 | |||
android:id="@+id/guokoucaoxiang_cc2" | |||
android:layout_width="100dp" | |||
android:layout_height="60dp" | |||
android:contentDescription="true" | |||
android:tag="@string/btn_fry2" | |||
app:imagesrc_ks="@mipmap/sb1" | |||
app:imagesrc_qt="@mipmap/sb2" | |||
app:imagesrc_tz="@mipmap/sb3" /> | |||
<com.bonait.bnframework.modules.home.fragment.mode.imagebuttom3 | |||
android:id="@+id/guokoucaoxiang_cc3" | |||
android:layout_width="100dp" | |||
android:layout_height="60dp" | |||
android:contentDescription="true" | |||
android:tag="@string/btn_fry3" | |||
app:imagesrc_ks="@mipmap/sb1" | |||
app:imagesrc_qt="@mipmap/sb2" | |||
app:imagesrc_tz="@mipmap/sb3" /> | |||
</LinearLayout> | |||
</RelativeLayout> | |||
</RelativeLayout> | |||
@@ -73,6 +73,9 @@ | |||
<string name="btn_origin">Original-按钮</string> | |||
<string name="btn_maintain">Maintain-按钮</string> | |||
<string name="btn_fry">Fry-按钮</string> | |||
<string name="btn_fry1">Fry1-按钮</string> | |||
<string name="btn_fry2">Fry2-按钮</string> | |||
<string name="btn_fry3">Fry3-按钮</string> | |||
<string name="btn_extract">Extract-按钮</string> | |||
<string name="btn_pour">Pour-按钮</string> | |||
<string name="btn_clean">Clean-按钮</string> | |||
@@ -73,6 +73,9 @@ | |||
<string name="btn_origin">原点位-按钮</string> | |||
<string name="btn_maintain">维护位-按钮</string> | |||
<string name="btn_fry">炒菜位-按钮</string> | |||
<string name="btn_fry1">炒菜位1-按钮</string> | |||
<string name="btn_fry2">炒菜位2-按钮</string> | |||
<string name="btn_fry3">炒菜位3-按钮</string> | |||
<string name="btn_extract">抽料位-按钮</string> | |||
<string name="btn_pour">倒菜位-按钮</string> | |||
<string name="btn_clean">清洗位-按钮</string> | |||