Browse Source

一拖四保存

一拖四味魔方
lyw 9 months ago
parent
commit
b9ec42b041
80 changed files with 1738 additions and 14 deletions
  1. +1
    -1
      .idea/gradle.xml
  2. +3
    -1
      .idea/misc.xml
  3. +4
    -1
      app/build.gradle
  4. +20
    -4
      app/src/main/AndroidManifest.xml
  5. +2
    -4
      app/src/main/java/com/bonait/bnframework/modules/welcome/activity/WelcomeActivity.java
  6. +17
    -0
      app/src/main/java/com/bonait/bnframework/modules/wmf/activity/ConnectActivity.java
  7. +17
    -0
      app/src/main/java/com/bonait/bnframework/modules/wmf/activity/ExctrlstateActivity.java
  8. +16
    -0
      app/src/main/java/com/bonait/bnframework/modules/wmf/activity/LogActivity.java
  9. +47
    -0
      app/src/main/java/com/bonait/bnframework/modules/wmf/activity/MainActivity.java
  10. +19
    -0
      app/src/main/java/com/bonait/bnframework/modules/wmf/activity/MtmanageActivity.java
  11. +63
    -0
      app/src/main/java/com/bonait/bnframework/modules/wmf/model/Bind_mt_device.java
  12. +11
    -0
      app/src/main/java/com/bonait/bnframework/modules/wmf/model/Choice_mt.java
  13. +120
    -0
      app/src/main/java/com/bonait/bnframework/modules/wmf/model/Choice_mt_model.java
  14. +23
    -0
      app/src/main/java/com/bonait/bnframework/modules/wmf/model/DeviceModel.java
  15. +208
    -0
      app/src/main/java/com/bonait/bnframework/modules/wmf/model/Mt_inf_model.java
  16. +29
    -0
      app/src/main/java/com/bonait/bnframework/modules/wmf/model/Mt_info.java
  17. +11
    -0
      app/src/main/java/com/bonait/bnframework/modules/wmf/model/Mt_recipe_model.java
  18. +109
    -0
      app/src/main/java/com/bonait/bnframework/modules/wmf/model/Mt_recipe_set.java
  19. BIN
     
  20. BIN
     
  21. BIN
     
  22. BIN
     
  23. BIN
     
  24. BIN
     
  25. BIN
     
  26. BIN
     
  27. BIN
     
  28. BIN
     
  29. BIN
     
  30. BIN
     
  31. BIN
     
  32. BIN
     
  33. BIN
     
  34. BIN
     
  35. BIN
     
  36. BIN
     
  37. BIN
     
  38. BIN
     
  39. BIN
     
  40. BIN
     
  41. BIN
     
  42. +8
    -0
      app/src/main/res/drawable/add_btn.xml
  43. +10
    -0
      app/src/main/res/drawable/btn_bg.xml
  44. +8
    -0
      app/src/main/res/drawable/btn_delete.xml
  45. +6
    -0
      app/src/main/res/drawable/btn_textcolor_1.xml
  46. +6
    -0
      app/src/main/res/drawable/button_textcolor.xml
  47. +20
    -0
      app/src/main/res/drawable/device_btn.xml
  48. +7
    -0
      app/src/main/res/drawable/exit_button.xml
  49. +6
    -0
      app/src/main/res/drawable/ic_check_btn.xml
  50. +14
    -0
      app/src/main/res/drawable/ic_connectbutton.xml
  51. +8
    -0
      app/src/main/res/drawable/ic_down_btn.xml
  52. +28
    -0
      app/src/main/res/drawable/ic_list_btn_back.xml
  53. +14
    -0
      app/src/main/res/drawable/ic_logbutton.xml
  54. +14
    -0
      app/src/main/res/drawable/ic_mtbutton.xml
  55. +13
    -0
      app/src/main/res/drawable/ic_pdbutton.xml
  56. +17
    -0
      app/src/main/res/drawable/list_background.xml
  57. +56
    -0
      app/src/main/res/drawable/main_view_btn.xml
  58. +15
    -0
      app/src/main/res/drawable/textframe.xml
  59. +16
    -0
      app/src/main/res/drawable/textframe_1.xml
  60. BIN
     
  61. BIN
     
  62. +7
    -0
      app/src/main/res/layout/datatab/font/alfa_slab_one.xml
  63. +17
    -0
      app/src/main/res/layout/datatab/values/font_certs.xml
  64. +6
    -0
      app/src/main/res/layout/datatab/values/preloaded_fonts.xml
  65. +4
    -3
      app/src/main/res/layout/fragment_dingdan.xml
  66. +13
    -0
      app/src/main/res/layout/wmfcode/item/layout/add_btn_list.xml
  67. +106
    -0
      app/src/main/res/layout/wmfcode/item/layout/choice_mt_user.xml
  68. +46
    -0
      app/src/main/res/layout/wmfcode/item/layout/device_bind_card.xml
  69. +56
    -0
      app/src/main/res/layout/wmfcode/item/layout/mt_device_bind_list.xml
  70. +136
    -0
      app/src/main/res/layout/wmfcode/item/layout/mt_download.xml
  71. +43
    -0
      app/src/main/res/layout/wmfcode/item/layout/mt_userctrl.xml
  72. +9
    -0
      app/src/main/res/layout/wmfcode/layout/activity_connect.xml
  73. +9
    -0
      app/src/main/res/layout/wmfcode/layout/activity_exctrlstate.xml
  74. +9
    -0
      app/src/main/res/layout/wmfcode/layout/activity_log2.xml
  75. +141
    -0
      app/src/main/res/layout/wmfcode/layout/activity_main.xml
  76. +136
    -0
      app/src/main/res/layout/wmfcode/layout/activity_mtmanage.xml
  77. +14
    -0
      app/src/main/res/layout/wmfcode/values/change_color.xml
  78. BIN
     
  79. BIN
     
  80. BIN
     

+ 1
- 1
.idea/gradle.xml View File

@@ -7,7 +7,7 @@
<option name="testRunner" value="GRADLE" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="Android Studio default JDK" />
<option name="gradleJvm" value="jbr-11" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />


+ 3
- 1
.idea/misc.xml View File

@@ -1,4 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="Android Studio default JDK" project-jdk-type="JavaSDK" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="corretto-11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
</project>

+ 4
- 1
app/build.gradle View File

@@ -45,7 +45,9 @@ android {
'src/main/res/layout/datatab',
'src/main/res/layout/item',
'src/main/res/layout',
'src/main/res'
'src/main/res',
'src/main/res/layout/wmfcode',
'src/main/res/layout/wmfcode/item'
]

}
@@ -70,6 +72,7 @@ dependencies {
//implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
implementation 'com.android.support:cardview-v7:28.0.0'

// QMUI框架 link: http://qmuiteam.com/android
// 本App 搭建的基础框架,基本使用控件功能请看官网的功能列表


+ 20
- 4
app/src/main/AndroidManifest.xml View File

@@ -33,6 +33,21 @@
tools:ignore="GoogleAppIndexingWarning"
tools:node="merge"
tools:replace="android:icon">
<activity
android:name=".modules.wmf.activity.ExctrlstateActivity"
android:exported="false" />
<activity
android:name=".modules.wmf.activity.MtmanageActivity"
android:exported="false" />
<activity
android:name=".modules.wmf.activity.ConnectActivity"
android:exported="false" />
<activity
android:name=".modules.wmf.activity.LogActivity"
android:exported="false" />
<activity
android:name=".modules.wmf.activity.MainActivity"
android:exported="false" />
<activity
android:name=".modules.home.fragment.mode.Silos_item_fragment"
android:exported="false"
@@ -43,7 +58,6 @@
<activity
android:name=".modules.mine.fragment.from.UserActivity"
android:exported="false" />

<activity
android:name=".modules.home.fragment.from.fragment.JiaoYan_sdkz_fragment"
android:exported="false"
@@ -56,7 +70,6 @@
android:name=".modules.home.fragment.from.WdszActivity"
android:exported="false"
tools:ignore="Instantiatable" />

<activity
android:name=".modules.home.fragment.from.DzcjyActivity"
android:exported="false"
@@ -174,8 +187,7 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".modules.welcome.activity.LoginActivity">
</activity>
<activity android:name=".modules.welcome.activity.LoginActivity" />

<receiver
android:name=".common.base.BootReceiver"
@@ -186,6 +198,10 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</receiver>

<meta-data
android:name="preloaded_fonts"
android:resource="@array/preloaded_fonts" />
</application>

</manifest>

+ 2
- 4
app/src/main/java/com/bonait/bnframework/modules/welcome/activity/WelcomeActivity.java View File

@@ -6,11 +6,10 @@ import android.os.Bundle;
import android.os.Handler;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.GridLayoutManager;

import android.view.KeyEvent;

import com.bonait.bnframework.modules.wmf.activity.MainActivity;
import com.bonait.bnframework.R;
import com.bonait.bnframework.business.MainInit;
import com.bonait.bnframework.common.base.BaseActivity;
@@ -21,7 +20,6 @@ import com.bonait.bnframework.manager.ActivityLifecycleManager;
import com.lzy.okgo.OkGo;

import okhttp3.OkHttpClient;
import pub.devrel.easypermissions.AfterPermissionGranted;
import pub.devrel.easypermissions.EasyPermissions;

public class WelcomeActivity extends BaseActivity {
@@ -166,7 +164,7 @@ public class WelcomeActivity extends BaseActivity {
ConfigName.getInstance().IsPortraitScreen=ScreenUtils.IsPortraitScreen(this);

// 跳转到登录页面
Intent intent = new Intent(WelcomeActivity.this, LoginActivity.class);
Intent intent = new Intent(WelcomeActivity.this, MainActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);


+ 17
- 0
app/src/main/java/com/bonait/bnframework/modules/wmf/activity/ConnectActivity.java View File

@@ -0,0 +1,17 @@
package com.bonait.bnframework.modules.wmf.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.bonait.bnframework.R;
import com.bonait.bnframework.common.base.BaseActivity;

public class ConnectActivity extends BaseActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_connect);
}
}

+ 17
- 0
app/src/main/java/com/bonait/bnframework/modules/wmf/activity/ExctrlstateActivity.java View File

@@ -0,0 +1,17 @@
package com.bonait.bnframework.modules.wmf.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.bonait.bnframework.R;
import com.bonait.bnframework.common.base.BaseActivity;

public class ExctrlstateActivity extends BaseActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_exctrlstate);
}
}

+ 16
- 0
app/src/main/java/com/bonait/bnframework/modules/wmf/activity/LogActivity.java View File

@@ -0,0 +1,16 @@
package com.bonait.bnframework.modules.wmf.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.bonait.bnframework.R;

public class LogActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_log2);
}
}

+ 47
- 0
app/src/main/java/com/bonait/bnframework/modules/wmf/activity/MainActivity.java View File

@@ -0,0 +1,47 @@
package com.bonait.bnframework.modules.wmf.activity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.core.widget.NestedScrollView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.StaggeredGridLayoutManager;

import android.app.Activity;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import android.widget.Button;
import com.bonait.bnframework.R;
import com.bonait.bnframework.common.base.BaseActivity;
import com.bonait.bnframework.modules.wmf.model.Mt_inf_model;
import com.bonait.bnframework.modules.wmf.model.Mt_info;
import com.bonait.bnframework.modules.wmf.model.Mt_recipe_model;
import com.bonait.bnframework.modules.wmf.model.Mt_recipe_set;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

public class MainActivity extends BaseActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ButterKnife.bind(this);

RecyclerView recyclerView = (RecyclerView) findViewById(R.id.mt_down_view);
StaggeredGridLayoutManager linearLayoutManager = new StaggeredGridLayoutManager(3, StaggeredGridLayoutManager.VERTICAL);
recyclerView.setLayoutManager(linearLayoutManager);
List<Mt_info> mt_infos = new ArrayList<>();
Mt_inf_model mt = new Mt_inf_model(this,mt_infos);
recyclerView.setAdapter(mt);
}

}

+ 19
- 0
app/src/main/java/com/bonait/bnframework/modules/wmf/activity/MtmanageActivity.java View File

@@ -0,0 +1,19 @@
package com.bonait.bnframework.modules.wmf.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.bonait.bnframework.R;
import com.bonait.bnframework.common.base.BaseActivity;

import java.util.prefs.BackingStoreException;

public class MtmanageActivity extends BaseActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_mtmanage);
}
}

+ 63
- 0
app/src/main/java/com/bonait/bnframework/modules/wmf/model/Bind_mt_device.java View File

@@ -0,0 +1,63 @@
package com.bonait.bnframework.modules.wmf.model;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.bonait.bnframework.R;

import org.w3c.dom.Text;

import java.util.List;

public class Bind_mt_device extends RecyclerView.Adapter<Bind_mt_device.ViewHolder> {
private List<Mt_recipe_model> mtRecipeModels;

private String device_name;

private int device_count;

private DeviceModel.Device_Count devices;

public Bind_mt_device(String device_name,int device_count){
this.device_name = device_name;
this.devices = new DeviceModel.Device_Count(device_name,device_count);
}

@NonNull
@Override
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType){
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.device_bind_card,parent,null);
return new ViewHolder(view);
}

@Override
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
DeviceModel deviceModel = devices.deviceModels.get(position);
}

@Override
public int getItemCount() {
return 0;
}

public class ViewHolder extends RecyclerView.ViewHolder{

Button mt_btn;

TextView decice;

public ViewHolder(View itemView){
super(itemView);
mt_btn = itemView.findViewById(R.id.bind_mt_name);
decice = itemView.findViewById(R.id.device_name);
}
}


}

+ 11
- 0
app/src/main/java/com/bonait/bnframework/modules/wmf/model/Choice_mt.java View File

@@ -0,0 +1,11 @@
package com.bonait.bnframework.modules.wmf.model;

import com.bonait.bnframework.modules.wmf.model.Mt_recipe_model;

import java.util.ArrayList;
import java.util.List;

public class Choice_mt {
public String name = "";
public List<Mt_recipe_model> mtRecipeModelList;
}

+ 120
- 0
app/src/main/java/com/bonait/bnframework/modules/wmf/model/Choice_mt_model.java View File

@@ -0,0 +1,120 @@
package com.bonait.bnframework.modules.wmf.model;

import android.app.Dialog;
import android.content.Context;
import android.graphics.Point;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;

import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.StaggeredGridLayoutManager;

import com.bonait.bnframework.R;

public class Choice_mt_model extends Dialog {
public Choice_mt_model(Context context){
super(context);
}

public Choice_mt_model(Context context,int theme){
super(context,theme);
}
public Choice_mt_model(Context context,boolean cancelable,OnCancelListener cancelListener){
super(context,cancelable,cancelListener);
}

/*build*/
public static class Builder{
EditText mt_name;

Button update,on_sure,on_exit;

RecyclerView src_mt;

public View.OnClickListener mClickListener;

public Mt_info mtInfo;

private Choice_mt_model choiceMtModel;

public Builder(Mt_info mtInfo, View.OnClickListener onClickListener){
this.mtInfo = mtInfo;
this.mClickListener = onClickListener;
}

View view;

public void Builder(Context context){
choiceMtModel = new Choice_mt_model(context,R.layout.choice_mt_user);
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
view = inflater.inflate(R.layout.choice_mt_user, null, false);
choiceMtModel.addContentView(view,new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.WRAP_CONTENT));
mt_name =(EditText) view.findViewById(R.id.src_name);
update = (Button) view.findViewById(R.id.src_update);
on_sure = (Button) view.findViewById(R.id.src_on_sure);
on_exit = (Button) view.findViewById(R.id.src_on_exit);
src_mt = (RecyclerView) view.findViewById(R.id.src_mt);
mt_name.setText(mtInfo.mt_name);
mt_name.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {

}

@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
if (mt_name.getText()!=null||mt_name.getText().length()!=0){
mtInfo.mt_name = mt_name.getText().toString();
}

}

@Override
public void afterTextChanged(Editable editable) {

if (mt_name.getText()!=null||mt_name.getText().length()!=0){
mtInfo.mt_name = mt_name.getText().toString();
}

}
});
on_sure.setOnClickListener(mClickListener);
on_exit.setOnClickListener(mClickListener);
update.setOnClickListener(mClickListener);

}

public Choice_mt_model create(){
StaggeredGridLayoutManager linearLayoutManager = new StaggeredGridLayoutManager(3, StaggeredGridLayoutManager.VERTICAL);
src_mt.setLayoutManager(linearLayoutManager);
Mt_recipe_set src = new Mt_recipe_set(mtInfo.mtRecipeModels);
src_mt.setAdapter(src);
choiceMtModel.setContentView(view);
Window window = choiceMtModel.getWindow();
WindowManager.LayoutParams params = window.getAttributes();
Point point = new Point();
Display p = window.getWindowManager().getDefaultDisplay();
p.getSize(point);
params.width = (int)(point.x*0.8);
params.height = (int)(point.y*0.8);

choiceMtModel.setCancelable(true);
choiceMtModel.setCanceledOnTouchOutside(false);
return choiceMtModel;
}


}




}

+ 23
- 0
app/src/main/java/com/bonait/bnframework/modules/wmf/model/DeviceModel.java View File

@@ -0,0 +1,23 @@
package com.bonait.bnframework.modules.wmf.model;

import java.util.ArrayList;
import java.util.List;

public class DeviceModel {
public String device_name;
public String bind_mt_name;
public class Device_Count{
public String device_num;
public List<DeviceModel> deviceModels;
public DeviceModel(String device_num,int n){
List<DeviceModel> deviceModelList = new ArrayList<>();
for (i=0;i<n;i++){
DeviceModel deviceModel = new DeviceModel();
deviceModel.device_name = "料仓"+device_num+(i+1);
deviceModelList.add(deviceModel);
}
this.deviceModels = deviceModelList;
}
}

}

+ 208
- 0
app/src/main/java/com/bonait/bnframework/modules/wmf/model/Mt_inf_model.java View File

@@ -0,0 +1,208 @@
package com.bonait.bnframework.modules.wmf.model;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.bonait.bnframework.R;

import java.util.ArrayList;
import java.util.List;

public class Mt_inf_model extends RecyclerView.Adapter<RecyclerView.ViewHolder> {

private Context context;

private Choice_mt_model mc;
private final int Type_Mtmodel = 0;

private final int Type_btn = 1;

public List<Mt_info> mtInfos;

public List<Mt_recipe_model> mtRecipeModelList;


public Mt_inf_model(Context context, List<Mt_info> mt_infos) {
this.mtInfos = mt_infos;
this.context = context;
}


public class BtnViewHolder extends RecyclerView.ViewHolder{
Button add_btn;
public BtnViewHolder(View view){
super(view);
add_btn = view.findViewById(R.id.add_list_btn);
}
}

public class CardViewHolder extends RecyclerView.ViewHolder{
Button write_button,delete_button,do_button,add_btn,down_btn;
TextView text_1,text_2,text_3;

public CardViewHolder(View itemView) {
super(itemView);
write_button = itemView.findViewById(R.id.recycle_view_write);
delete_button = itemView.findViewById(R.id.recycle_view_delete);
do_button = itemView.findViewById(R.id.recycle_view_do);
text_1 = itemView.findViewById(R.id.name_text_1);
text_2 = itemView.findViewById(R.id.src_text);
text_3 = itemView.findViewById(R.id.text_count);
add_btn = itemView.findViewById(R.id.ic_add_btn);
down_btn = itemView.findViewById(R.id.ic_down_btn);
}
}





@NonNull
@Override
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
if (viewType == Type_Mtmodel){
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.mt_download,parent,false);
return new CardViewHolder(view);
}
else {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.add_btn_list,parent,false);
return new BtnViewHolder(view);
}
}

@Override
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
if (holder.getItemViewType() == Type_Mtmodel){
CardViewHolder holder_card = (CardViewHolder) holder;
Mt_info data = mtInfos.get(position);

holder_card.do_button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
data.setMt_src();
data.setName();
notifyDataSetChanged();
}
});
holder_card.add_btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
data.setMt_count_add();
notifyDataSetChanged();
}
});
holder_card.down_btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
data.setMt_count_down();
notifyDataSetChanged();
}
});
holder_card.delete_button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
mtInfos.remove(data);
notifyDataSetChanged();
}
});
holder_card.write_button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Mt_info mt_info = new Mt_info();
Choice_mt_model.Builder builder = new Choice_mt_model.Builder(data, new View.OnClickListener() {
@Override
public void onClick(View view) {
switch (view.getId()){
case R.id.src_on_exit:

mt_info = data;
mtInfos.remove(data);
mtInfos.add(position,mt_info);
notifyDataSetChanged();
mc.dismiss();
break;
case R.id.src_on_sure:
notifyDataSetChanged();
mc.dismiss();
break;
}

}
});
builder.Builder(context);
mc = builder.create();
mc.show();

}
});
holder_card.text_1.setText(data.mt_name);
holder_card.text_2.setText(data.mt_src);
holder_card.text_3.setText(String.valueOf(data.mt_count));
}
else {
BtnViewHolder holder_btn = (BtnViewHolder) holder;
holder_btn.add_btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {

Mt_info mt_info = new Mt_info();
mtRecipeModelList = new ArrayList<>();
for (int i = 0; i < 20; i++) {
Mt_recipe_model mmt = new Mt_recipe_model();
mmt.Mt_weight = i;
mmt.Mt_name = "物料" + i;
mtRecipeModelList.add(mmt);
}
mt_info.mtRecipeModels = mtRecipeModelList;
Choice_mt_model.Builder builder = new Choice_mt_model.Builder(mt_info, new View.OnClickListener() {
@Override
public void onClick(View view) {
switch (view.getId()){
case R.id.src_on_sure:
mt_info.mt_src = "本地配方";
mtInfos.add(mt_info);
mc.dismiss();
notifyDataSetChanged();
break;
case R.id.src_on_exit:
mc.dismiss();
break;
}
}
});
builder.Builder(context);
mc = builder.create();
mc.show();
}
});
}

}

@Override
public int getItemCount() {
if (mtInfos!=null){
return mtInfos.size()+1;
}
else{
return 1;
}
}

@Override
public int getItemViewType(int position){
if (position<mtInfos.size()){
return Type_Mtmodel;
}else {
return Type_btn;
}
}

}

+ 29
- 0
app/src/main/java/com/bonait/bnframework/modules/wmf/model/Mt_info.java View File

@@ -0,0 +1,29 @@
package com.bonait.bnframework.modules.wmf.model;

import java.util.List;

/*配方下发参数*/
public class Mt_info {
public String mt_name;
public String mt_src;
public int mt_count = 1;

public List<Mt_recipe_model> mtRecipeModels;

public void setName(){
this.mt_name = "测试1";
}

public void setMt_count_down() {
if (this.mt_count >=1){
this.mt_count = this.mt_count - 1;
}
}
public void setMt_count_add(){
this.mt_count = this.mt_count+1;
}

public void setMt_src() {
this.mt_src = "本地配方";
}
}

+ 11
- 0
app/src/main/java/com/bonait/bnframework/modules/wmf/model/Mt_recipe_model.java View File

@@ -0,0 +1,11 @@
package com.bonait.bnframework.modules.wmf.model;

public class Mt_recipe_model {
public String Mt_name;
public boolean Mt_c = false;
public int Mt_weight = 0;

public String Bind_device;


}

+ 109
- 0
app/src/main/java/com/bonait/bnframework/modules/wmf/model/Mt_recipe_set.java View File

@@ -0,0 +1,109 @@
package com.bonait.bnframework.modules.wmf.model;

import android.content.Context;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.util.Log;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.widget.TextView;
import android.widget.EditText;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.bonait.bnframework.R;

import org.w3c.dom.Text;

import java.util.List;

public class Mt_recipe_set extends RecyclerView.Adapter<Mt_recipe_set.ViewHolder> {

public List<Mt_recipe_model> mtRecipeModelList;

/*子项控件绑定*/
public Mt_recipe_set(List<Mt_recipe_model> recipeModels){
this.mtRecipeModelList = recipeModels;
}


/*子项控件绑定*/
public class ViewHolder extends RecyclerView.ViewHolder {
CheckBox mt_check;
TextView mt_name;
EditText mt_weight;


public ViewHolder(View itemView) {
super(itemView);
mt_check = itemView.findViewById(R.id.mt_check);
mt_name = itemView.findViewById(R.id.mt_name);
mt_weight = itemView.findViewById(R.id.mt_weight);
}
}



/*根据类型创建子项*/
@Override
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.mt_userctrl, parent, false);
ViewHolder holder = new ViewHolder(view);
return holder;
}


@Override
public void onBindViewHolder(ViewHolder holder, int position) {
//mode
Mt_recipe_model data = mtRecipeModelList.get(position);
//绑定数据
holder.mt_name.setText(data.Mt_name + "");
holder.mt_weight.setText(String.valueOf(data.Mt_weight) + "");
holder.mt_check.setChecked(data.Mt_c);
holder.mt_check.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
data.Mt_c = holder.mt_check.isChecked();
}
});
holder.mt_weight.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {

}

@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {

}

@Override
public void afterTextChanged(Editable editable) {
if (holder.mt_weight.length() != 0) {
data.Mt_weight = Integer.parseInt(holder.mt_weight.getText().toString());
} else
data.Mt_weight = 0;

}
});

}

@Override
public int getItemCount() {
if (mtRecipeModelList != null) {
return mtRecipeModelList.size();
}
return 0;
}

}

BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


BIN
View File


+ 8
- 0
app/src/main/res/drawable/add_btn.xml View File

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

<item android:state_pressed="true" android:drawable="@drawable/ic_add_2"/>
<item android:state_selected="true" android:drawable="@drawable/ic_add_2"/>
<item android:state_focused="true" android:drawable="@drawable/ic_add_2"/>
<item android:drawable="@drawable/ic_add_1"/>
</selector>

+ 10
- 0
app/src/main/res/drawable/btn_bg.xml View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<ripple android:color="@color/btn_cg_blue" xmlns:android="http://schemas.android.com/apk/res/android">

<item>
<shape>
<solid android:color="@color/back_blue"/>
<corners android:radius="20dp"/>
</shape>
</item>
</ripple>

+ 8
- 0
app/src/main/res/drawable/btn_delete.xml View File

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

<item android:state_pressed="true" android:drawable="@drawable/ic_delete_1"/>
<item android:state_selected="true" android:drawable="@drawable/ic_delete_1"/>
<item android:state_focused="true" android:drawable="@drawable/ic_delete_1"/>
<item android:drawable="@drawable/ic_delete_2"/>
</selector>

+ 6
- 0
app/src/main/res/drawable/btn_textcolor_1.xml View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:state_pressed="true" android:color="@color/text_gray"/>
<item android:color ="@color/text_blue"/>
</selector>

+ 6
- 0
app/src/main/res/drawable/button_textcolor.xml View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:state_pressed="true" android:color="@color/text_black"/>
<item android:color ="@color/text_gray"/>
</selector>

+ 20
- 0
app/src/main/res/drawable/device_btn.xml View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:state_pressed="true">

<shape android:shape="rectangle">

<solid android:color="@color/back_blue"/>
<corners android:radius="20dp" android:bottomLeftRadius="20dp" android:bottomRightRadius="20dp" android:topLeftRadius="0dp" android:topRightRadius="0dp"/>
</shape>
</item>

<item>

<shape android:shape="rectangle">
<solid android:color="@color/back_blue"/>
<corners android:radius="20dp" android:bottomLeftRadius="20dp" android:bottomRightRadius="20dp" android:topLeftRadius="0dp" android:topRightRadius="0dp"/>
</shape>
</item>
</selector>

+ 7
- 0
app/src/main/res/drawable/exit_button.xml View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/ic_exit_1"/>
<item android:state_selected="true" android:drawable="@drawable/ic_exit_1"/>
<item android:state_focused="true" android:drawable="@drawable/ic_exit_1"/>
<item android:drawable="@drawable/ic_exit"/>
</selector>

+ 6
- 0
app/src/main/res/drawable/ic_check_btn.xml View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:state_checked="true" android:drawable="@drawable/ic_check_true"/>
<item android:state_checked="false" android:drawable="@drawable/ic_check_false"/>
</selector>

+ 14
- 0
app/src/main/res/drawable/ic_connectbutton.xml View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:state_pressed="true">
<layer-list>
<item android:width="20dp" android:height="20dp" android:drawable="@drawable/ic_con_1"/>
</layer-list>
</item>
<item>
<layer-list>
<item android:width="20dp" android:height="20dp" android:drawable="@drawable/ic_con_2"/>
</layer-list>
</item>
</selector>

+ 8
- 0
app/src/main/res/drawable/ic_down_btn.xml View File

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

<item android:state_pressed="true" android:drawable="@drawable/ic_down_2"/>
<item android:state_selected="true" android:drawable="@drawable/ic_down_2"/>
<item android:state_focused="true" android:drawable="@drawable/ic_down_2"/>
<item android:drawable="@drawable/ic_down_1"/>
</selector>

+ 28
- 0
app/src/main/res/drawable/ic_list_btn_back.xml View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<layer-list>
<item>
<shape android:shape="rectangle">
<corners android:radius="20dp"/>
<solid android:color="@color/back_blue"/>
</shape>
</item>
<item android:left="6dp" android:right="6dp" android:top="6dp" android:bottom="6dp" android:drawable="@drawable/ic_add_list"/>
</layer-list>
</item>

<item>
<layer-list>
<item>
<shape android:shape="rectangle">
<solid android:color="@color/back_blue"/>
<corners android:radius="20dp"/>
</shape>
</item>
<item android:left="6dp" android:top="6dp" android:bottom="6dp" android:right="6dp" android:drawable="@drawable/ic_add_list_1"/>
</layer-list>
</item>


</selector>

+ 14
- 0
app/src/main/res/drawable/ic_logbutton.xml View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:state_pressed="true">
<layer-list>
<item android:width="20dp" android:height="20dp" android:drawable="@drawable/ic_log_2"/>
</layer-list>
</item>
<item>
<layer-list>
<item android:width="20dp" android:height="20dp" android:drawable="@drawable/ic_log_1"/>
</layer-list>
</item>
</selector>

+ 14
- 0
app/src/main/res/drawable/ic_mtbutton.xml View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:state_pressed="true">
<layer-list>
<item android:width="20dp" android:height="20dp" android:drawable="@drawable/ic_pd_2"/>
</layer-list>
</item>
<item>
<layer-list>
<item android:width="20dp" android:height="20dp" android:drawable="@drawable/ic_pd_1"/>
</layer-list>
</item>
</selector>

+ 13
- 0
app/src/main/res/drawable/ic_pdbutton.xml View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<layer-list>
<item android:width="20dp" android:height="20dp" android:drawable="@drawable/ic_mt_1"/>
</layer-list>
</item>
<item>
<layer-list>
<item android:width="20dp" android:height="20dp" android:drawable="@drawable/ic_mt_2"/>
</layer-list>
</item>
</selector>

+ 17
- 0
app/src/main/res/drawable/list_background.xml View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list android:color="@color/qmui_s_transparent" xmlns:android="http://schemas.android.com/apk/res/android">

<item>
<shape android:shape="rectangle">
<solid android:color="@color/back_blue"/>
<corners android:radius="20dp"/>
</shape>
</item>

<item android:bottom="6dp" android:top="6dp" android:left="6dp" android:right="6dp">
<shape android:shape="rectangle">
<solid android:color="@color/back_gray"/>
<corners android:radius="20dp"/>
</shape>
</item>
</layer-list>

+ 56
- 0
app/src/main/res/drawable/main_view_btn.xml View File

@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:state_pressed="true">
<layer-list>
<item android:width="@dimen/dp_40" android:height="@dimen/dp_40">
<shape>
<gradient
android:startColor="#AC7FFA"
android:endColor="#70C7FD"
android:angle="-90"/>

<corners android:radius="@dimen/dp_10"/>
</shape>
</item>
<item android:top="3dp" android:bottom="3dp" android:right="3dp" android:left="3dp">
<shape>
<solid android:color="#212039"/>
<corners android:radius="@dimen/dp_10"/>
</shape>
</item>
<item android:width="@dimen/dp_40" android:height="@dimen/dp_40" >
<layer-list>
<item android:top="5dp" android:bottom="5dp" android:right="5dp" android:left="5dp" android:drawable="@drawable/ic_home_1"/>
</layer-list>
</item>
</layer-list>
</item>

<item>
<layer-list>
<item android:width="@dimen/dp_40" android:height="@dimen/dp_40">
<shape>
<gradient
android:startColor="#AC7FFA"
android:endColor="#70C7FD"
android:angle="-90"/>

<corners android:radius="@dimen/dp_10"/>
</shape>
</item>
<item android:top="3dp" android:bottom="3dp" android:right="3dp" android:left="3dp">
<shape>
<solid android:color="#212039"/>
<corners android:radius="@dimen/dp_10"/>
</shape>
</item>
<item android:width="@dimen/dp_40" android:height="@dimen/dp_40" >
<layer-list>
<item android:top="5dp" android:bottom="5dp" android:right="5dp" android:left="5dp" android:drawable="@drawable/ic_home_2"/>
</layer-list>
</item>
</layer-list>
</item>

</selector>

+ 15
- 0
app/src/main/res/drawable/textframe.xml View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<solid android:color="@color/back_white"/>
<corners android:radius="2dp"/>
</shape>
</item>
<item android:bottom="2dp" android:top="2dp" android:left="2dp" android:right="2dp" android:gravity="center">
<shape>
<solid android:color="@color/back_gray"/>
<corners android:radius="2dp"/>
</shape>
</item>
</layer-list>

+ 16
- 0
app/src/main/res/drawable/textframe_1.xml View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

<item>
<shape>
<solid android:color="@color/back_gray"/>
<corners android:radius="2dp"/>
</shape>
</item>
<item android:bottom="2dp" android:top="2dp" android:left="2dp" android:right="2dp" android:gravity="center">
<shape>
<solid android:color="@color/back_white"/>
<corners android:radius="2dp"/>
</shape>
</item>
</layer-list>

BIN
View File


BIN
View File


+ 7
- 0
app/src/main/res/layout/datatab/font/alfa_slab_one.xml View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:app="http://schemas.android.com/apk/res-auto"
app:fontProviderAuthority="com.google.android.gms.fonts"
app:fontProviderPackage="com.google.android.gms"
app:fontProviderQuery="Alfa Slab One"
app:fontProviderCerts="@array/com_google_android_gms_fonts_certs">
</font-family>

+ 17
- 0
app/src/main/res/layout/datatab/values/font_certs.xml View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="com_google_android_gms_fonts_certs">
<item>@array/com_google_android_gms_fonts_certs_dev</item>
<item>@array/com_google_android_gms_fonts_certs_prod</item>
</array>
<string-array name="com_google_android_gms_fonts_certs_dev">
<item>
MIIEqDCCA5CgAwIBAgIJANWFuGx90071MA0GCSqGSIb3DQEBBAUAMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAeFw0wODA0MTUyMzM2NTZaFw0zNTA5MDEyMzM2NTZaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBANbOLggKv+IxTdGNs8/TGFy0PTP6DHThvbbR24kT9ixcOd9W+EaBPWW+wPPKQmsHxajtWjmQwWfna8mZuSeJS48LIgAZlKkpFeVyxW0qMBujb8X8ETrWy550NaFtI6t9+u7hZeTfHwqNvacKhp1RbE6dBRGWynwMVX8XW8N1+UjFaq6GCJukT4qmpN2afb8sCjUigq0GuMwYXrFVee74bQgLHWGJwPmvmLHC69EH6kWr22ijx4OKXlSIx2xT1AsSHee70w5iDBiK4aph27yH3TxkXy9V89TDdexAcKk/cVHYNnDBapcavl7y0RiQ4biu8ymM8Ga/nmzhRKya6G0cGw8CAQOjgfwwgfkwHQYDVR0OBBYEFI0cxb6VTEM8YYY6FbBMvAPyT+CyMIHJBgNVHSMEgcEwgb6AFI0cxb6VTEM8YYY6FbBMvAPyT+CyoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJANWFuGx90071MAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADggEBABnTDPEF+3iSP0wNfdIjIz1AlnrPzgAIHVvXxunW7SBrDhEglQZBbKJEk5kT0mtKoOD1JMrSu1xuTKEBahWRbqHsXclaXjoBADb0kkjVEJu/Lh5hgYZnOjvlba8Ld7HCKePCVePoTJBdI4fvugnL8TsgK05aIskyY0hKI9L8KfqfGTl1lzOv2KoWD0KWwtAWPoGChZxmQ+nBli+gwYMzM1vAkP+aayLe0a1EQimlOalO762r0GXO0ks+UeXde2Z4e+8S/pf7pITEI/tP+MxJTALw9QUWEv9lKTk+jkbqxbsh8nfBUapfKqYn0eidpwq2AzVp3juYl7//fKnaPhJD9gs=
</item>
</string-array>
<string-array name="com_google_android_gms_fonts_certs_prod">
<item>
MIIEQzCCAyugAwIBAgIJAMLgh0ZkSjCNMA0GCSqGSIb3DQEBBAUAMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDAeFw0wODA4MjEyMzEzMzRaFw0zNjAxMDcyMzEzMzRaMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBAKtWLgDYO6IIrgqWbxJOKdoR8qtW0I9Y4sypEwPpt1TTcvZApxsdyxMJZ2JORland2qSGT2y5b+3JKkedxiLDmpHpDsz2WCbdxgxRczfey5YZnTJ4VZbH0xqWVW/8lGmPav5xVwnIiJS6HXk+BVKZF+JcWjAsb/GEuq/eFdpuzSqeYTcfi6idkyugwfYwXFU1+5fZKUaRKYCwkkFQVfcAs1fXA5V+++FGfvjJ/CxURaSxaBvGdGDhfXE28LWuT9ozCl5xw4Yq5OGazvV24mZVSoOO0yZ31j7kYvtwYK6NeADwbSxDdJEqO4k//0zOHKrUiGYXtqw/A0LFFtqoZKFjnkCAQOjgdkwgdYwHQYDVR0OBBYEFMd9jMIhF1Ylmn/Tgt9r45jk14alMIGmBgNVHSMEgZ4wgZuAFMd9jMIhF1Ylmn/Tgt9r45jk14aloXikdjB0MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLR29vZ2xlIEluYy4xEDAOBgNVBAsTB0FuZHJvaWQxEDAOBgNVBAMTB0FuZHJvaWSCCQDC4IdGZEowjTAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBAUAA4IBAQBt0lLO74UwLDYKqs6Tm8/yzKkEu116FmH4rkaymUIE0P9KaMftGlMexFlaYjzmB2OxZyl6euNXEsQH8gjwyxCUKRJNexBiGcCEyj6z+a1fuHHvkiaai+KL8W1EyNmgjmyy8AW7P+LLlkR+ho5zEHatRbM/YAnqGcFh5iZBqpknHf1SKMXFh4dd239FJ1jWYfbMDMy3NS5CTMQ2XFI1MvcyUTdZPErjQfTbQe3aDQsQcafEQPD+nqActifKZ0Np0IS9L9kR/wbNvyz6ENwPiTrjV2KRkEjH78ZMcUQXg0L3BYHJ3lc69Vs5Ddf9uUGGMYldX3WfMBEmh/9iFBDAaTCK
</item>
</string-array>
</resources>

+ 6
- 0
app/src/main/res/layout/datatab/values/preloaded_fonts.xml View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="preloaded_fonts" translatable="false">
<item>@font/alfa_slab_one</item>
</array>
</resources>

+ 4
- 3
app/src/main/res/layout/fragment_dingdan.xml View File

@@ -37,13 +37,14 @@
android:orientation="vertical"
android:focusable="false"
android:background="@drawable/silos_bj">

<ImageView
android:layout_margin="@dimen/dp_10"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_margin="@dimen/dp_10"
android:layout_weight="1"
android:src="@mipmap/new1"
android:focusable="false"/>
android:focusable="false"
android:src="@mipmap/new1" />
</LinearLayout>
<TextView
android:layout_width="match_parent"


+ 13
- 0
app/src/main/res/layout/wmfcode/item/layout/add_btn_list.xml View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="200dp"
android:layout_height="200dp">
<Button
android:id="@+id/add_list_btn"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginVertical="10dp"
android:layout_marginHorizontal="10dp"
android:background="@drawable/ic_list_btn_back"/>

</RelativeLayout>

+ 106
- 0
app/src/main/res/layout/wmfcode/item/layout/choice_mt_user.xml View File

@@ -0,0 +1,106 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_marginVertical="100dp"
android:layout_marginHorizontal="100dp"
android:background="@color/back_gray"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/back_white"
android:gravity="center|center_vertical"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:gravity="center|center_vertical"
android:layout_weight="1">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/dp_40">
<TextView
android:layout_width="wrap_content"
android:layout_height="30dp"
android:textColor="@color/text_blue"
android:text="配方名称:"
android:textSize="18dp"
android:gravity="center"
android:fontFamily="@font/sthupo"/>
<EditText
android:id="@+id/src_name"
android:layout_width="200dp"
android:layout_height="30dp"
android:background="@drawable/textframe_1"
android:layout_marginLeft="20dp"
android:gravity="center|left"
android:paddingLeft="5dp"
android:textColor="@color/text_blue"/>

</LinearLayout>
<Button
android:id="@+id/src_update"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="同步云端"
android:layout_marginHorizontal="@dimen/dp_40"
android:background="@drawable/btn_bg"
android:textColor="@color/text_white"
android:fontFamily="@font/sthupo"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/dp_40"/>

</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="7">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginHorizontal="20dp">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/src_mt"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/back_gray"/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.8"
android:gravity="center|center_vertical">
<Button
android:id="@+id/src_on_exit"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="取消"
android:paddingHorizontal="40dp"
android:background="@drawable/btn_bg"
android:textColor="@color/text_white"
android:fontFamily="@font/sthupo"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/dp_40"/>
<Button
android:id="@+id/src_on_sure"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="确认"
android:paddingHorizontal="40dp"
android:background="@drawable/btn_bg"
android:textColor="@color/text_white"
android:fontFamily="@font/sthupo"
android:layout_alignParentLeft="true"
android:layout_marginLeft="@dimen/dp_40"/>
</RelativeLayout>

</LinearLayout>


</RelativeLayout>

+ 46
- 0
app/src/main/res/layout/wmfcode/item/layout/device_bind_card.xml View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="200dp"
android:layout_height="200dp"
android:background="@drawable/btn_bg"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center">
<TextView
android:id="@+id/device_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="料仓A1"
android:textStyle="bold"
android:fontFamily="@font/aldrich"
android:textColor="@color/text_white"
android:textSize="20dp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/back_white"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="3"
android:gravity="center">
<Button
android:id="@+id/bind_mt_name"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/device_btn"
android:textSize="@dimen/dp_40"
android:text="鸡精"
android:textColor="@drawable/btn_textcolor_1"
android:gravity="center"
android:fontFamily="@font/sthupo"/>

</RelativeLayout>



</LinearLayout>

+ 56
- 0
app/src/main/res/layout/wmfcode/item/layout/mt_device_bind_list.xml View File

@@ -0,0 +1,56 @@
<?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="300dp"
android:background="@drawable/list_background">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:gravity="center"
android:layout_weight="1">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="设备编号:"
android:layout_marginLeft="20dp"
android:fontFamily="@font/sthupo"
android:textColor="@color/text_white"
android:textSize="20dp"
android:gravity="center"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="A"
android:layout_marginLeft="20dp"
android:fontFamily="@font/sthupo"
android:textColor="@color/text_white"
android:textSize="20dp"
android:gravity="center"/>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="4"
android:gravity="center">
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="20dp"
android:layout_marginHorizontal="20dp"/>
</RelativeLayout>

</LinearLayout>





</RelativeLayout>

+ 136
- 0
app/src/main/res/layout/wmfcode/item/layout/mt_download.xml View File

@@ -0,0 +1,136 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:background="@color/back_gray"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="200dp"
android:layout_height="200dp">
<RelativeLayout
android:layout_marginVertical="10dp"
android:layout_marginHorizontal="10dp"
android:background="@drawable/list_background"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_marginTop="10dp">
<TextView
android:id="@+id/name_text_1"
android:layout_marginTop="5dp"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:text="鱼香肉丝"
android:gravity="center"
android:layout_centerHorizontal="true"
android:fontFamily="@font/sthupo"
android:textColor="@color/text_blue"/>
<Button
android:id="@+id/recycle_view_write"
android:layout_width="20dp"
android:layout_height="20dp"
android:background="@mipmap/ic_pencil_blue"
android:layout_marginTop="5dp"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp"/>
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:gravity="center|left"
android:orientation="horizontal"
android:layout_height="0dp"
android:layout_weight="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="20dp"
android:text="属性:"
android:textColor="@color/text_blue"
android:fontFamily="@font/sthupo"
android:gravity="center|left"
android:layout_marginLeft="@dimen/dp_40"
/>
<TextView
android:id="@+id/src_text"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:text="本地配方"
android:textColor="@color/text_blue"
android:gravity="center|left"
android:layout_marginLeft="10dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:gravity="center|left"
android:orientation="horizontal"
android:layout_height="0dp"
android:layout_weight="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="20dp"
android:text="数量:"
android:textColor="@color/text_blue"
android:fontFamily="@font/sthupo"
android:gravity="center|left"
android:layout_marginLeft="@dimen/dp_40"
/>
<Button
android:id="@+id/ic_down_btn"
android:layout_width="20dp"
android:layout_height="20dp"
android:background="@drawable/ic_down_btn"/>
<TextView
android:id="@+id/text_count"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:minWidth="40dp"
android:text="1"
android:paddingLeft="3dp"
android:textColor="@color/text_blue"
android:background="@drawable/textframe"
android:gravity="center|left"/>
<Button
android:id="@+id/ic_add_btn"
android:layout_width="20dp"
android:layout_height="20dp"
android:background="@drawable/add_btn"/>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:gravity="center"
android:layout_height="0dp"
android:layout_weight="1">
<Button
android:id="@+id/recycle_view_do"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:background="@drawable/btn_bg"
android:text="执行"
android:fontFamily="@font/sthupo"
android:textColor="@color/text_white"/>



</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center">
<Button
android:id="@+id/recycle_view_delete"
android:layout_width="20dp"
android:layout_height="20dp"
android:background="@drawable/btn_delete"
android:gravity="center"/>


</RelativeLayout>

</LinearLayout>
</RelativeLayout>

</RelativeLayout>

+ 43
- 0
app/src/main/res/layout/wmfcode/item/layout/mt_userctrl.xml View File

@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:background="@color/back_gray"
android:layout_width="220dp"
android:layout_height="50dp"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:background="@color/back_gray"
android:orientation="horizontal"
android:gravity="center|left"
android:layout_height="match_parent"
android:layout_marginHorizontal="10dp"
android:layout_marginVertical="10dp">
<CheckBox
android:id="@+id/mt_check"
android:layout_width="30dp"
android:layout_height="30dp"

/>
<TextView
android:id="@+id/mt_name"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="测试显示"
android:textColor="@color/text_blue"
android:gravity="center|left"
/>
<EditText
android:id="@+id/mt_weight"
android:layout_width="80dp"
android:layout_height="30dp"
android:background="@drawable/textframe"
android:inputType="number"
android:layout_marginLeft="20dp"
android:paddingLeft="10dp"
android:gravity="center|left"
android:textColor="@color/text_blue"
/>


</LinearLayout>
</RelativeLayout>

+ 9
- 0
app/src/main/res/layout/wmfcode/layout/activity_connect.xml View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".modules.wmf.activity.ConnectActivity">

</androidx.constraintlayout.widget.ConstraintLayout>

+ 9
- 0
app/src/main/res/layout/wmfcode/layout/activity_exctrlstate.xml View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".modules.wmf.activity.ExctrlstateActivity">

</androidx.constraintlayout.widget.ConstraintLayout>

+ 9
- 0
app/src/main/res/layout/wmfcode/layout/activity_log2.xml View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".modules.wmf.activity.LogActivity">

</androidx.constraintlayout.widget.ConstraintLayout>

+ 141
- 0
app/src/main/res/layout/wmfcode/layout/activity_main.xml View File

@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="utf-8"?>
<com.qmuiteam.qmui.widget.QMUIWindowInsetLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/back_gray"
tools:context=".modules.wmf.activity.MainActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:background="@color/back_blue">

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:fontFamily="@font/sthupo"
android:text="味魔方配料"
android:textAlignment="center"
android:textColor="@color/back_white"
android:textSize="20dp" />
<Button
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="30dp"
android:background="@drawable/exit_button"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginHorizontal="50dp"
android:layout_marginVertical="60dp">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/mt_down_view"
android:layout_width="match_parent"
android:background="@color/back_gray"
android:layout_height="match_parent"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:orientation="horizontal"
android:layout_alignParentBottom="true"
android:background="@color/back_white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:gravity="center">
<RelativeLayout
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/back_white"
android:drawableLeft="@drawable/ic_mtbutton"
android:drawablePadding="10dp"
android:text="配方执行状态"
android:textAlignment="textStart"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:textColor="@drawable/button_textcolor" />
</RelativeLayout>
<RelativeLayout
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/back_white"
android:drawableLeft="@drawable/ic_pdbutton"
android:drawablePadding="10dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:textAlignment="textStart"
android:text="物料管理"
android:textColor="@drawable/button_textcolor" />
</RelativeLayout>
<Button
android:layout_weight="2"
android:layout_width="0dp"
android:layout_height="30dp"
android:background="@color/back_white"/>
<RelativeLayout
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/back_white"
android:drawableLeft="@drawable/ic_connectbutton"
android:drawablePadding="10dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:textAlignment="textStart"
android:text="设备物料绑定"
android:textColor="@drawable/button_textcolor" />
</RelativeLayout>
<RelativeLayout
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
>

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@color/back_white"
android:drawableLeft="@drawable/ic_logbutton"
android:drawablePadding="10dp"
android:text="日志"
android:textAlignment="textStart"
android:textColor="@drawable/button_textcolor" />
</RelativeLayout>
</LinearLayout>

</RelativeLayout>
<Button
android:layout_width="40dp"
android:layout_height="40dp"
android:background="@drawable/main_view_btn"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:layout_marginBottom="@dimen/dp_10"/>

</RelativeLayout>


</com.qmuiteam.qmui.widget.QMUIWindowInsetLayout>

+ 136
- 0
app/src/main/res/layout/wmfcode/layout/activity_mtmanage.xml View File

@@ -0,0 +1,136 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".modules.wmf.activity.MtmanageActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/back_gray">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="30dp">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginLeft="30dp"
android:layout_alignParentLeft="true"
android:fontFamily="@font/sthupo"
android:text="设备物料绑定"
android:textAlignment="center"
android:textColor="@color/text_white"
android:textSize="20dp" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginHorizontal="20dp"
android:layout_marginVertical="60dp">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/device_mt_bind"
android:layout_width="match_parent"
android:background="@color/back_gray"
android:layout_height="match_parent"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:orientation="horizontal"
android:layout_alignParentBottom="true"
android:background="@color/back_white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:gravity="center">
<RelativeLayout
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/back_white"
android:drawableLeft="@drawable/ic_mtbutton"
android:drawablePadding="10dp"
android:text="配方执行状态"
android:textAlignment="textStart"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:textColor="@drawable/button_textcolor" />
</RelativeLayout>
<RelativeLayout
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/back_white"
android:drawableLeft="@drawable/ic_pdbutton"
android:drawablePadding="10dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:textAlignment="textStart"
android:text="物料管理"
android:textColor="@drawable/button_textcolor" />
</RelativeLayout>
<Button
android:layout_weight="2"
android:layout_width="0dp"
android:layout_height="30dp"
android:background="@color/back_white"/>
<RelativeLayout
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/back_white"
android:drawableLeft="@drawable/ic_connectbutton"
android:drawablePadding="10dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:textAlignment="textStart"
android:text="设备物料绑定"
android:textColor="@drawable/button_textcolor" />
</RelativeLayout>
<RelativeLayout
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
>

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@color/back_white"
android:drawableLeft="@drawable/ic_logbutton"
android:drawablePadding="10dp"
android:text="日志"
android:textAlignment="textStart"
android:textColor="@drawable/button_textcolor" />
</RelativeLayout>
</LinearLayout>

</RelativeLayout>
<Button
android:layout_width="40dp"
android:layout_height="40dp"
android:background="@drawable/main_view_btn"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:layout_marginBottom="@dimen/dp_10"/>

</RelativeLayout>

</androidx.constraintlayout.widget.ConstraintLayout>

+ 14
- 0
app/src/main/res/layout/wmfcode/values/change_color.xml View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="text_gray">#707070</color>
<color name="text_black">#2c2c2c</color>
<color name="text_blue">#048CFC</color>
<color name="back_gray">#e8e8e8</color>
<color name="back_white">#ffffff</color>
<color name="back_blue">#048CFC</color>
<color name="text_white">#ffffff</color>
<color name="btn_cg_blue">#1F62A1</color>
<style name="mt_radio_btn" parent="android:Widget.CompoundButton.CheckBox">
<item name="android:button">@drawable/ic_check_btn</item>
</style>
</resources>

BIN
View File


BIN
View File


BIN
View File


Loading…
Cancel
Save