Browse Source

锅口朝向范围设置

炒锅机器人_一拖多
liup 1 month ago
parent
commit
894af98015
7 changed files with 1176 additions and 7 deletions
  1. +2
    -0
      app/src/main/java/com/bonait/bnframework/common/constant/ConfigName.java
  2. +4
    -4
      app/src/main/java/com/bonait/bnframework/common/filepicker/adapter/FilePickerShowAdapter.java
  3. +4
    -3
      app/src/main/java/com/bonait/bnframework/newui/activity/SystemSetActivity.java
  4. +329
    -0
      app/src/main/java/com/bonait/bnframework/newui/fragment/setting/WokDirectionSetFragment.java
  5. +837
    -0
      app/src/main/res/layout/new/layout/fragment_wok_direction_set.xml
  6. BIN
     
  7. BIN
     

+ 2
- 0
app/src/main/java/com/bonait/bnframework/common/constant/ConfigName.java View File

@@ -217,6 +217,8 @@ public class ConfigName {
add(new Res_PLCADDRESS("洗锅位置上限", "VD162", 0, 1));
add(new Res_PLCADDRESS("倒菜位置下限", "VD166", 0, 1));
add(new Res_PLCADDRESS("倒菜位置上限", "VD170", 0, 1));
add(new Res_PLCADDRESS("维护位置下限", "VD1130", 0, 1));
add(new Res_PLCADDRESS("维护位置上限", "VD1134", 0, 1));
add(new Res_PLCADDRESS("抽调料位置下限", "VD174", 0, 1));
add(new Res_PLCADDRESS("抽调料位置上限", "VD178", 0, 1));
add(new Res_PLCADDRESS("1#炒制位置下限", "VD182", 0, 1));


+ 4
- 4
app/src/main/java/com/bonait/bnframework/common/filepicker/adapter/FilePickerShowAdapter.java View File

@@ -61,11 +61,11 @@ public class FilePickerShowAdapter extends RecyclerView.Adapter<RecyclerView.Vie
holder.mTvDetail.setText(FileUtils.getReadableFileSize(file.length()));
if (fileEntity.getFileType() != null) {
String title = fileEntity.getFileType().getTitle();
if (title.equals("IMG")) {
// if (title.equals("IMG")) {
Glide.with(mContext).load(new File(fileEntity.getPath())).into(holder.mIvType);
} else {
holder.mIvType.setImageResource(fileEntity.getFileType().getIconStyle());
}
// } else {
// holder.mIvType.setImageResource(fileEntity.getFileType().getIconStyle());
// }
} else {
holder.mIvType.setImageResource(R.mipmap.file_picker_def);
}


+ 4
- 3
app/src/main/java/com/bonait/bnframework/newui/activity/SystemSetActivity.java View File

@@ -16,6 +16,7 @@ import com.bonait.bnframework.newui.fragment.setting.DeviceSetFragment;
import com.bonait.bnframework.newui.fragment.setting.PicManagerFragment;
import com.bonait.bnframework.newui.fragment.setting.PlcAddressFragment;
import com.bonait.bnframework.newui.fragment.setting.SceneSetFragment;
import com.bonait.bnframework.newui.fragment.setting.WokDirectionSetFragment;

/**
* @author: liup
@@ -39,7 +40,7 @@ public class SystemSetActivity extends BaseActivity {
initFragment();
viewBinding.viewpager.addOnPageChangeListener(pageChangeListener);
// 设置viewPager缓存多少个fragment
viewBinding.viewpager.setOffscreenPageLimit(4);
viewBinding.viewpager.setOffscreenPageLimit(1);
// viewBinding.navigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener);
updateTopBar(1);
viewBinding.ll1.setOnClickListener(v->{
@@ -102,9 +103,9 @@ public class SystemSetActivity extends BaseActivity {
*/
private void initFragment() {
FragmentAdapter fragmentAdapter = new FragmentAdapter(getSupportFragmentManager());
fragmentAdapter.addFragment(new PicManagerFragment());
fragmentAdapter.addFragment(new DeviceSetFragment());
fragmentAdapter.addFragment(new SceneSetFragment());
fragmentAdapter.addFragment(new PicManagerFragment());
fragmentAdapter.addFragment(new WokDirectionSetFragment());
fragmentAdapter.addFragment(new PlcAddressFragment());

viewBinding.viewpager.setAdapter(fragmentAdapter);


+ 329
- 0
app/src/main/java/com/bonait/bnframework/newui/fragment/setting/WokDirectionSetFragment.java View File

@@ -0,0 +1,329 @@
package com.bonait.bnframework.newui.fragment.setting;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.widget.EditText;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.bonait.bnframework.HBL.Thread.ThreadManager;
import com.bonait.bnframework.R;
import com.bonait.bnframework.business.ExecuteTheRecipe;
import com.bonait.bnframework.common.base.BaseFragment;
import com.bonait.bnframework.common.constant.ConfigName;
import com.bonait.bnframework.common.utils.DisplayManager;
import com.bonait.bnframework.common.utils.PreferenceUtils;
import com.bonait.bnframework.common.utils.ToastUtils;
import com.bonait.bnframework.databinding.FragmentSystemDeviceBinding;
import com.bonait.bnframework.databinding.FragmentWokDirectionSetBinding;
import com.bonait.bnframework.modbus.ModbusCenter;
import com.bonait.bnframework.newui.widget.NewToastUtil;

/**
* @author: liup
* @description: 设备信息设置
* @date: 2024/6/13 11:05.
*/
public class WokDirectionSetFragment extends BaseFragment {
private FragmentWokDirectionSetBinding viewBinding;
private int deviceNum = 1;
private boolean visible = false;
private boolean isFresh = false;

private Handler handler = new Handler(Looper.getMainLooper()){
@Override
public void handleMessage(@NonNull Message msg) {
super.handleMessage(msg);
}
};
@Override
protected View onCreateView() {
View root = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_wok_direction_set, null);
viewBinding = FragmentWokDirectionSetBinding .bind(root);
DisplayManager.scaleViewGroup(viewBinding.getRoot());
return root;
}

@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
initView();
}

@Override
public void setUserVisibleHint(boolean isVisibleToUser) {
super.setUserVisibleHint(isVisibleToUser);
if(isVisibleToUser){
visible = true;
if(!isFresh){
RefreshThread();
}
}else {
visible = false;
}
}

@SuppressLint("ClickableViewAccessibility")
private void initView(){
ThreadManager.get().execute(new Runnable() {
@Override
public void run() {
isFresh = true;
while (!visible){
try {
Object o0=ExecuteTheRecipe.ReadPLC(deviceNum,"编码器当前位值");
Object o1=ExecuteTheRecipe.ReadPLC(deviceNum,"原点位反馈");
Object o2=ExecuteTheRecipe.ReadPLC(deviceNum,"清洗位反馈");
Object o3=ExecuteTheRecipe.ReadPLC(deviceNum,"倒菜位反馈");
Object o4=ExecuteTheRecipe.ReadPLC(deviceNum,"抽料位反馈");
Object o5=ExecuteTheRecipe.ReadPLC(deviceNum,"炒菜位1反馈");
Object o6=ExecuteTheRecipe.ReadPLC(deviceNum,"炒菜位2反馈");
Object o7=ExecuteTheRecipe.ReadPLC(deviceNum,"炒菜位3反馈");
Object o8=ExecuteTheRecipe.ReadPLC(deviceNum,"维护位反馈");

if(handler!=null){
handler.post(()->{
if(o0!=null) { viewBinding.chaoguoWeizhi.setText(o0 + ""); }
else {viewBinding.chaoguoWeizhi.setText("未知");}

if(o1!=null) { viewBinding.ydwStatus.setBackgroundResource((boolean)o1?R.mipmap.status_z:R.mipmap.status_y); }
else {viewBinding.ydwStatus.setBackgroundResource(R.mipmap.status_y); }

if(o2!=null) { viewBinding.xgwStatus.setBackgroundResource((boolean)o2?R.mipmap.status_z:R.mipmap.status_y); }
else {viewBinding.xgwStatus.setBackgroundResource(R.mipmap.status_y); }

if(o8!=null) { viewBinding.whwStatus.setBackgroundResource((boolean)o8?R.mipmap.status_z:R.mipmap.status_y); }
else {viewBinding.whwStatus.setBackgroundResource(R.mipmap.status_y); }

if(o3!=null) { viewBinding.ccwStatus.setBackgroundResource((boolean)o3?R.mipmap.status_z:R.mipmap.status_y); }
else {viewBinding.ccwStatus.setBackgroundResource(R.mipmap.status_y); }

if(o4!=null) { viewBinding.ctlStatus.setBackgroundResource((boolean)o4?R.mipmap.status_z:R.mipmap.status_y); }
else {viewBinding.ctlStatus.setBackgroundResource(R.mipmap.status_y); }

if(o5!=null) { viewBinding.czw1Status.setBackgroundResource((boolean)o5?R.mipmap.status_z:R.mipmap.status_y); }
else {viewBinding.czw1Status.setBackgroundResource(R.mipmap.status_y); }

if(o6!=null) { viewBinding.czw2Status.setBackgroundResource((boolean)o6?R.mipmap.status_z:R.mipmap.status_y); }
else {viewBinding.czw2Status.setBackgroundResource(R.mipmap.status_y); }

if(o7!=null) { viewBinding.czw3Status.setBackgroundResource((boolean)o7?R.mipmap.status_z:R.mipmap.status_y); }
else {viewBinding.czw3Status.setBackgroundResource(R.mipmap.status_y); }
});
}
Thread.sleep(500);
}catch (Exception e){

}
}
isFresh = false;
}
});

viewBinding.gkzxButton.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {
Log.e("鼠标", "按下: ");
ExecuteTheRecipe.WritePLC(deviceNum,"转动速度", 50, null);
ExecuteTheRecipe.WritePLC(deviceNum,"翻转正转", true, null);
} else if (motionEvent.getAction() == MotionEvent.ACTION_UP) {
Log.e("鼠标", "松开: ");
ExecuteTheRecipe.WritePLC(deviceNum,"翻转正转", false, null);
}
return false;
}
});

viewBinding.gkfxButton.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {
Log.e("鼠标", "按下: ");
ExecuteTheRecipe.WritePLC(deviceNum,"转动速度", 50,null);
ExecuteTheRecipe.WritePLC(deviceNum,"翻转反转", true, null);
} else if (motionEvent.getAction() == MotionEvent.ACTION_UP) {
Log.e("鼠标", "松开: ");
ExecuteTheRecipe.WritePLC(deviceNum,"翻转反转", false, null);
}
return false;
}
});

viewBinding.deviceNumSave.setOnClickListener(v->{
String num = viewBinding.edtDeviceNum.getText().toString();
if(num.equals("2")){
deviceNum = 2;
}else if(num.equals("1")){
deviceNum = 1;
}else {
NewToastUtil.getInstance().showToastError("请输入有效设备号!");
return;
}
viewBinding.tvDeviceNum.setText(deviceNum+"号设备");
});

viewBinding.ydwSave.setOnClickListener(v->{
SaveValue("原点位置",viewBinding.editYdw1,viewBinding.editYdw2);
});
viewBinding.xgwSave.setOnClickListener(v->{
SaveValue("洗锅位置",viewBinding.editXgw1,viewBinding.editXgw2);
});
viewBinding.whwSave.setOnClickListener(v->{
SaveValue("维护位置",viewBinding.editWhw1,viewBinding.editWhw2);
});
viewBinding.ydwSave.setOnClickListener(v->{
SaveValue("原点位置",viewBinding.editYdw1,viewBinding.editYdw2);
});
viewBinding.ccwSave.setOnClickListener(v->{
SaveValue("倒菜位置",viewBinding.editCcw1,viewBinding.editCcw2);
});
viewBinding.ctlSave.setOnClickListener(v->{
SaveValue("抽调料位置",viewBinding.editCtl1,viewBinding.editCtl2);
});
viewBinding.czw1Save.setOnClickListener(v->{
SaveValue("1#炒制位置",viewBinding.editCzw11,viewBinding.editCzw12);
});
viewBinding.czw2Save.setOnClickListener(v->{
SaveValue("2#炒制位置",viewBinding.editCzw21,viewBinding.editCzw22);
});
viewBinding.czw3Save.setOnClickListener(v->{
SaveValue("3#炒制位置",viewBinding.editCzw31,viewBinding.editCzw32);
});
viewBinding.gzfwSave.setOnClickListener(v->{
SaveValue("炒锅工作范围",viewBinding.editGzfw1,viewBinding.editGzfw2);
});


viewBinding.ydwButton.setOnClickListener(v->{
ButtomZhiWeiZhi("原点位");
});
viewBinding.xgwButton.setOnClickListener(v->{
ButtomZhiWeiZhi("清洗位");
});
viewBinding.whwButton.setOnClickListener(v->{
ButtomZhiWeiZhi("维护位");
});
viewBinding.ctlButton.setOnClickListener(v->{
ButtomZhiWeiZhi("抽料位");
});
viewBinding.czw1Button.setOnClickListener(v->{
ButtomZhiWeiZhi("炒菜位1");
});
viewBinding.czw2Button.setOnClickListener(v->{
ButtomZhiWeiZhi("炒菜位2");
});
viewBinding.czw3Button.setOnClickListener(v->{
ButtomZhiWeiZhi("炒菜位3");
});


}

/**
* 刷新UI线程
*/
public void RefreshThread()
{
ThreadManager.get().execute(new Runnable() {
@Override
public void run() {
SetShowValue("原点位置",viewBinding.editYdw1,viewBinding.editYdw2);
SetShowValue("洗锅位置",viewBinding.editXgw1,viewBinding.editXgw2);
SetShowValue("维护位置",viewBinding.editWhw1,viewBinding.editWhw2);
SetShowValue("倒菜位置",viewBinding.editCcw1,viewBinding.editCcw2);
SetShowValue("抽调料位置",viewBinding.editCtl1,viewBinding.editCtl2);
SetShowValue("1#炒制位置",viewBinding.editCzw11,viewBinding.editCzw12);
SetShowValue("2#炒制位置",viewBinding.editCzw21,viewBinding.editCzw22);
SetShowValue("3#炒制位置",viewBinding.editCzw31,viewBinding.editCzw32);
SetShowValue("炒锅工作范围",viewBinding.editGzfw1,viewBinding.editGzfw2);
}
});

}

/**
* 根据监听设置值
* @param name
* @param edit1
* @param edit2
*/
private void SetShowValue(String name, EditText edit1, EditText edit2)
{
Object val1= ModbusCenter.ReadPlc(deviceNum,name+"下限");
Object val2=ModbusCenter.ReadPlc(deviceNum,name+"上限");
if(handler!=null){
handler.post(()->{
if(val1!=null)
{
String str=String.valueOf(val1);
edit1.setText(str.toCharArray(), 0, str.length());
}

if(val2!=null)
{
String str=String.valueOf(val2);
edit2.setText(str.toCharArray(), 0, str.length());
}
});
}
}


/**
* 写入设置值
* @param name
* @param edit1
* @param edit2
*/
private void SaveValue(String name,EditText edit1,EditText edit2) {
String val1 = edit1.getText().toString();
String val2 = edit2.getText().toString();
if (val1.isEmpty()) {
NewToastUtil.getInstance().showToastError(name + "下限不能为空!");
return;
}
if (val2.isEmpty()) {
NewToastUtil.getInstance().showToastError(name + "上限不能为空!");
return;
}
int va1 = 0;
int va2 = 0;
try {
va1=Integer.parseInt(val1);
va2=Integer.parseInt(val2);
} catch (Exception ex)
{
NewToastUtil.getInstance().showToastError(name + "异常了,"+ex.getMessage());
return;
}

ExecuteTheRecipe.WritePLC(deviceNum,name+"下限",va1,null);
ExecuteTheRecipe.WritePLC(deviceNum,name+"上限",va2,null);
NewToastUtil.getInstance().showToast(name + "-保存成功!");
}

/**
* 执行去某个位置
*/
private void ButtomZhiWeiZhi(String name)
{
ExecuteTheRecipe.WritePLC(deviceNum,name,true,null);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
ExecuteTheRecipe.WritePLC(deviceNum,name, false, null);
}
}, 500);
NewToastUtil.getInstance().showToast(name+"-执行成功!");
}

}

+ 837
- 0
app/src/main/res/layout/new/layout/fragment_wok_direction_set.xml View File

@@ -0,0 +1,837 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">

<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/ll2"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/dp_20"
android:minWidth="60dp"
android:textSize="32sp"
android:text="设备号" />

<EditText
android:imeOptions="actionDone"
android:id="@+id/edt_deviceNum"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:background="@drawable/input_bj"
android:hint="请输入设备号"
android:inputType="number"
android:gravity="center"
android:maxLines="1"
android:textSize="32sp"

android:padding="3dp"
android:text="1"/>

<Button
android:id="@+id/device_num_save"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:layout_marginStart="20dp"
android:background="@drawable/button1"
android:text="确定"
android:textSize="32sp" />

<TextView
android:id="@+id/tvDeviceNum"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1号设备"
android:layout_marginStart="300"
android:textColor="@color/red_primary_dark"
android:textSize="36sp"
android:textStyle="bold"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="400dp"
android:layout_marginStart="150dp"
>

<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="位置下限"
android:gravity="center"
android:textSize="32sp" />

<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_weight="1"
android:text="位置上限"
android:textSize="32sp" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/dp_20"
android:minWidth="60dp"
android:textSize="32sp"
android:text="原点位置" />

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_ydw1"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:textSize="32sp"
android:padding="3dp"
android:text="0"/>

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_ydw2"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<RelativeLayout
android:id="@+id/ydw_status"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@mipmap/status_y" />

<Button
android:id="@+id/ydw_save"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/button1"
android:text="保存"
android:textSize="32sp" />

<Button
android:id="@+id/ydw_button"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/bg_btn_login_selected"
android:text="回原点"
android:textSize="32sp" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/dp_20"
android:textSize="32sp"
android:minWidth="60dp"
android:text="维护位置" />

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_whw1"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_whw2"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<RelativeLayout
android:id="@+id/whw_status"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@mipmap/status_y" />

<Button
android:id="@+id/whw_save"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/button1"
android:text="保存"
android:textSize="32sp" />

<Button
android:id="@+id/whw_button"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/bg_btn_login_selected"
android:text="维护位"
android:textSize="32sp" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/dp_20"
android:textSize="32sp"
android:minWidth="60dp"
android:text="洗锅位置" />

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_xgw1"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_xgw2"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<RelativeLayout
android:id="@+id/xgw_status"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@mipmap/status_y" />

<Button
android:id="@+id/xgw_save"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/button1"
android:text="保存"
android:textSize="32sp" />

<Button
android:id="@+id/xgw_button"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/bg_btn_login_selected"
android:text="洗锅位"
android:textSize="32sp" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/dp_20"
android:textSize="32sp"
android:minWidth="60dp"
android:text="出餐位置" />

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_ccw1"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_ccw2"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>
<RelativeLayout
android:id="@+id/ccw_status"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@mipmap/status_y" />

<Button
android:id="@+id/ccw_save"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/button1"
android:text="保存"
android:textSize="32sp" />

<Button
android:id="@+id/ccw_button"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/bg_btn_login_selected"
android:text="出餐位"
android:textSize="32sp" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/dp_20"
android:textSize="32sp"
android:minWidth="60dp"
android:text="抽料位置" />

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_ctl1"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_ctl2"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="match_parent">

<RelativeLayout
android:id="@+id/ctl_status"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@mipmap/status_y" />
</RelativeLayout>

<Button
android:id="@+id/ctl_save"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/button1"
android:text="保存"
android:textSize="32sp" />

<Button
android:id="@+id/ctl_button"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/bg_btn_login_selected"
android:text="抽料位"
android:textSize="32sp" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/dp_20"
android:textSize="32sp"
android:minWidth="60dp"
android:text="1#炒制位\n炒菜位高" />

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_czw11"
android:layout_width="140dp"
android:layout_gravity="center_vertical"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_czw12"
android:layout_gravity="center_vertical"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<RelativeLayout
android:id="@+id/czw1_status"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@mipmap/status_y" />

<Button
android:id="@+id/czw1_save"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/button1"
android:text="保存"
android:textSize="32sp" />

<Button
android:id="@+id/czw1_button"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/bg_btn_login_selected"
android:text="1#位置"
android:textSize="32sp" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="32sp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/dp_20"
android:minWidth="60dp"
android:text="2#炒制位\n炒菜位高" />

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_czw21"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:layout_gravity="center_vertical"
android:textSize="32sp"
android:text="0"/>

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_czw22"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:layout_gravity="center_vertical"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<RelativeLayout
android:id="@+id/czw2_status"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@mipmap/status_y" />

<Button
android:id="@+id/czw2_save"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/button1"
android:text="保存"
android:textSize="32sp" />

<Button
android:id="@+id/czw2_button"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/bg_btn_login_selected"
android:text="2#位置"
android:textSize="32sp" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20">

<TextView
android:layout_width="wrap_content"
android:textSize="32sp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/dp_20"
android:minWidth="60dp"
android:text="3#炒制位" />

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_czw31"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_czw32"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<RelativeLayout
android:id="@+id/czw3_status"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:background="@mipmap/status_y" />

<Button
android:id="@+id/czw3_save"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/button1"
android:text="保存"
android:textSize="32sp" />

<Button
android:id="@+id/czw3_button"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/bg_btn_login_selected"
android:text="3#位置"
android:textSize="32sp" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_20">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:textSize="32sp"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/dp_20"
android:minWidth="60dp"
android:text="工作范围" />

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_gzfw1"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<EditText
android:imeOptions="actionDone"
android:id="@+id/edit_gzfw2"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="1"
android:background="@drawable/input_bj"
android:hint="请输入位置"
android:inputType="number"
android:maxLines="1"
android:padding="3dp"
android:textSize="32sp"
android:text="0"/>

<RelativeLayout
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
/>

<Button
android:id="@+id/gzfw_save"
android:layout_width="140dp"
android:layout_height="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/button1"
android:text="保存"
android:textSize="32sp" />

<View
android:layout_width="140dp"
android:layout_marginEnd="@dimen/dp_20"
android:layout_height="wrap_content"/>
</LinearLayout>

</LinearLayout>
</ScrollView>

<LinearLayout
android:id="@+id/ll2"
android:layout_alignParentBottom="true"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_marginBottom="10dp"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginTop="@dimen/dp_20">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/dp_20"
android:textSize="32sp"
android:minWidth="60dp"
android:text="炒锅当前位置:" />

<TextView
android:id="@+id/chaoguo_weizhi"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/dp_20"
android:minWidth="60dp"
android:textSize="36sp"
android:text="10005"
android:textColor="@color/deep_orange_primary"
android:textStyle="bold"/>
</LinearLayout>

<LinearLayout
android:layout_marginBottom="10dp"
android:layout_width="wrap_content"
android:gravity="center_horizontal"
android:layout_gravity="center_horizontal"
android:layout_height="wrap_content">

<Button
android:id="@+id/gkzx_button"
android:layout_width="250dp"
android:layout_height="120dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/bg_round15_yellow_btn"
android:text="锅口控制\n正向移动"
android:textSize="32sp"
android:textColor="@color/white"/>

<Button
android:id="@+id/gkfx_button"
android:layout_width="250dp"
android:layout_height="120dp"
android:layout_marginStart="50dp"
android:layout_marginEnd="@dimen/dp_20"
android:background="@drawable/bg_round15_yellow_btn"
android:text="锅口控制\n反向移动"
android:textSize="32sp"
android:textColor="@color/white"/>
</LinearLayout>
</LinearLayout>

</RelativeLayout>

BIN
View File


BIN
View File


Loading…
Cancel
Save