@@ -4,10 +4,10 @@ | |||||
<selectionStates> | <selectionStates> | ||||
<SelectionState runConfigName="app"> | <SelectionState runConfigName="app"> | ||||
<option name="selectionMode" value="DROPDOWN" /> | <option name="selectionMode" value="DROPDOWN" /> | ||||
<DropdownSelection timestamp="2024-08-19T06:05:44.263962500Z"> | |||||
<DropdownSelection timestamp="2024-09-11T10:44:13.742879300Z"> | |||||
<Target type="DEFAULT_BOOT"> | <Target type="DEFAULT_BOOT"> | ||||
<handle> | <handle> | ||||
<DeviceId pluginId="Default" identifier="serial=127.0.0.1:7555;connection=2f03a5eb" /> | |||||
<DeviceId pluginId="PhysicalDevice" identifier="serial=f53c72a8" /> | |||||
</handle> | </handle> | ||||
</Target> | </Target> | ||||
</DropdownSelection> | </DropdownSelection> | ||||
@@ -199,7 +199,7 @@ | |||||
android:theme="@style/AppTheme.Launcher"> | android:theme="@style/AppTheme.Launcher"> | ||||
<intent-filter> | <intent-filter> | ||||
<action android:name="android.intent.action.MAIN" /> | <action android:name="android.intent.action.MAIN" /> | ||||
<category android:name="android.intent.category.DEFAULT" /> | |||||
<category android:name="android.intent.category.LAUNCHER" /> | <category android:name="android.intent.category.LAUNCHER" /> | ||||
</intent-filter> | </intent-filter> | ||||
</activity> | </activity> | ||||
@@ -76,9 +76,6 @@ public class MainInit { | |||||
*/ | */ | ||||
public static void Init(Application app) | public static void Init(Application app) | ||||
{ | { | ||||
if(ConfigName.getInstance().isPhoneVersion){ | |||||
ConfigName.getInstance().scale = 1.5; | |||||
} | |||||
//0.全局异常捕获,保存为SD卡本级目录 crash | //0.全局异常捕获,保存为SD卡本级目录 crash | ||||
CrashHandler.getInstance().init(app); | CrashHandler.getInstance().init(app); | ||||
@@ -30,9 +30,6 @@ import java.util.Map; | |||||
import java.util.concurrent.atomic.AtomicReference; | import java.util.concurrent.atomic.AtomicReference; | ||||
public class APIHelper { | public class APIHelper { | ||||
private static String key="64059261-1599-472c-b418-3c18b4e3883e"; | |||||
/** | /** | ||||
* 获取加密后的签名 | * 获取加密后的签名 | ||||
* @param t | * @param t | ||||
@@ -440,7 +437,7 @@ public class APIHelper { | |||||
//设置请求头 | //设置请求头 | ||||
connection.setRequestProperty("key", signkey); | connection.setRequestProperty("key", signkey); | ||||
connection.setRequestProperty("sign", sign); | connection.setRequestProperty("sign", sign); | ||||
LogUtils.d("PostT sign="+sign +";key="+key+":url="+url); | |||||
LogUtils.d("PostT sign="+sign +";key="+signkey+":url="+url); | |||||
//设置请求 body | //设置请求 body | ||||
@@ -36,7 +36,7 @@ import java.util.concurrent.ConcurrentHashMap; | |||||
public class ConfigName { | public class ConfigName { | ||||
public static boolean isTEST = false; | public static boolean isTEST = false; | ||||
public boolean is800WithFeeding = false;//是否是800带投料版 有5个投料位 | public boolean is800WithFeeding = false;//是否是800带投料版 有5个投料位 | ||||
public boolean isPhoneVersion = false;//是否适配手机 | |||||
public boolean isPhoneVersion = true;//是否适配手机 | |||||
public boolean isHighVersion = false;//是否适配高版本 | public boolean isHighVersion = false;//是否适配高版本 | ||||
public double scale = 1; | public double scale = 1; | ||||
@@ -418,12 +418,12 @@ public class ConfigName { | |||||
add(new Res_PLCADDRESS("料仓4校准开关", "M13.5", 0, 1)); | add(new Res_PLCADDRESS("料仓4校准开关", "M13.5", 0, 1)); | ||||
add(new Res_PLCADDRESS("料仓4校准值", "VW120", 1, 1)); | add(new Res_PLCADDRESS("料仓4校准值", "VW120", 1, 1)); | ||||
//todo | //todo | ||||
add(new Res_PLCADDRESS("料仓5校准开关", "M13.5", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓5校准值", "VW120", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6校准开关", "M13.5", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓6校准值", "VW120", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7校准开关", "M13.5", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓7校准值", "VW120", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓5校准开关", "M101.0", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓5校准值", "VW550", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6校准开关", "M101.1", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓6校准值", "VW554", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7校准开关", "M101.2", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓7校准值", "VW558", 1, 1)); | |||||
add(new Res_PLCADDRESS("开始校正", "M12.6", 0, 1)); | add(new Res_PLCADDRESS("开始校正", "M12.6", 0, 1)); | ||||
@@ -437,12 +437,12 @@ public class ConfigName { | |||||
add(new Res_PLCADDRESS("料仓4需求值", "VW122", 1, 1)); | add(new Res_PLCADDRESS("料仓4需求值", "VW122", 1, 1)); | ||||
add(new Res_PLCADDRESS("料仓4下料", "M13.4", 0, 1)); | add(new Res_PLCADDRESS("料仓4下料", "M13.4", 0, 1)); | ||||
//todo | //todo | ||||
add(new Res_PLCADDRESS("料仓5需求值", "VW122", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓5下料", "M13.4", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓6需求值", "VW122", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6下料", "M13.4", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓7需求值", "VW122", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7下料", "M13.4", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓5需求值", "VW552", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓5下料", "M100.0", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓6需求值", "VW556", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6下料", "M100.1", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓7需求值", "VW560", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7下料", "M100.2", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓手动", "-------------", 0, 0)); | add(new Res_PLCADDRESS("料仓手动", "-------------", 0, 0)); | ||||
add(new Res_PLCADDRESS("料仓1手动开关", "M13.1", 1, 1)); | add(new Res_PLCADDRESS("料仓1手动开关", "M13.1", 1, 1)); | ||||
@@ -450,9 +450,9 @@ public class ConfigName { | |||||
add(new Res_PLCADDRESS("料仓3手动开关", "M13.3", 1, 1)); | add(new Res_PLCADDRESS("料仓3手动开关", "M13.3", 1, 1)); | ||||
add(new Res_PLCADDRESS("料仓4手动开关", "M10.7", 1, 1)); | add(new Res_PLCADDRESS("料仓4手动开关", "M10.7", 1, 1)); | ||||
//todo | //todo | ||||
add(new Res_PLCADDRESS("料仓5手动开关", "M13.3", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6手动开关", "M10.7", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7手动开关", "M13.3", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓5手动开关", "M102.0", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6手动开关", "M102.1", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7手动开关", "M102.2", 1, 1)); | |||||
//上下限 | //上下限 | ||||
add(new Res_PLCADDRESS("位置上下限", "-------------", 0, 0)); | add(new Res_PLCADDRESS("位置上下限", "-------------", 0, 0)); | ||||
@@ -506,9 +506,9 @@ public class ConfigName { | |||||
add(new Res_PLCADDRESS("料仓3下料完成", "M41.4", 1, 0)); | add(new Res_PLCADDRESS("料仓3下料完成", "M41.4", 1, 0)); | ||||
add(new Res_PLCADDRESS("料仓4下料完成", "M42.0", 1, 0)); | add(new Res_PLCADDRESS("料仓4下料完成", "M42.0", 1, 0)); | ||||
//todo | //todo | ||||
add(new Res_PLCADDRESS("料仓5下料完成", "M42.0", 1, 0)); | |||||
add(new Res_PLCADDRESS("料仓6下料完成", "M42.0", 1, 0)); | |||||
add(new Res_PLCADDRESS("料仓7下料完成", "M42.0", 1, 0)); | |||||
add(new Res_PLCADDRESS("料仓5下料完成", "M105.0", 1, 0)); | |||||
add(new Res_PLCADDRESS("料仓6下料完成", "M105.1", 1, 0)); | |||||
add(new Res_PLCADDRESS("料仓7下料完成", "M105.2", 1, 0)); | |||||
add(new Res_PLCADDRESS("炒锅清洗反馈", "M41.5", 1, 0)); | add(new Res_PLCADDRESS("炒锅清洗反馈", "M41.5", 1, 0)); | ||||
add(new Res_PLCADDRESS("出餐启动反馈", "M41.6", 1, 0)); | add(new Res_PLCADDRESS("出餐启动反馈", "M41.6", 1, 0)); | ||||
@@ -628,6 +628,13 @@ public class ConfigName { | |||||
add(new Res_PLCADDRESS("料仓4校准开关", "M13.5", 0, 1)); | add(new Res_PLCADDRESS("料仓4校准开关", "M13.5", 0, 1)); | ||||
add(new Res_PLCADDRESS("料仓4校准值", "VW120", 1, 1)); | add(new Res_PLCADDRESS("料仓4校准值", "VW120", 1, 1)); | ||||
add(new Res_PLCADDRESS("开始校正", "M12.6", 0, 1)); | add(new Res_PLCADDRESS("开始校正", "M12.6", 0, 1)); | ||||
//todo | |||||
add(new Res_PLCADDRESS("料仓5校准开关", "M101.0", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓5校准值", "VW550", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6校准开关", "M101.1", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓6校准值", "VW554", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7校准开关", "M101.2", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓7校准值", "VW558", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓自动", "-------------", 0, 0)); | add(new Res_PLCADDRESS("料仓自动", "-------------", 0, 0)); | ||||
add(new Res_PLCADDRESS("料仓1需求值", "VW106", 1, 1)); | add(new Res_PLCADDRESS("料仓1需求值", "VW106", 1, 1)); | ||||
@@ -638,13 +645,22 @@ public class ConfigName { | |||||
add(new Res_PLCADDRESS("料仓3下料", "M11.3", 0, 1)); | add(new Res_PLCADDRESS("料仓3下料", "M11.3", 0, 1)); | ||||
add(new Res_PLCADDRESS("料仓4需求值", "VW122", 1, 1)); | add(new Res_PLCADDRESS("料仓4需求值", "VW122", 1, 1)); | ||||
add(new Res_PLCADDRESS("料仓4下料", "M13.4", 0, 1)); | add(new Res_PLCADDRESS("料仓4下料", "M13.4", 0, 1)); | ||||
//todo | |||||
add(new Res_PLCADDRESS("料仓5需求值", "VW552", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓5下料", "M100.0", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓6需求值", "VW556", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6下料", "M100.1", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓7需求值", "VW560", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7下料", "M100.2", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓手动", "-------------", 0, 0)); | add(new Res_PLCADDRESS("料仓手动", "-------------", 0, 0)); | ||||
add(new Res_PLCADDRESS("料仓1手动开关", "M13.1", 1, 1)); | add(new Res_PLCADDRESS("料仓1手动开关", "M13.1", 1, 1)); | ||||
add(new Res_PLCADDRESS("料仓2手动开关", "M13.2", 1, 1)); | add(new Res_PLCADDRESS("料仓2手动开关", "M13.2", 1, 1)); | ||||
add(new Res_PLCADDRESS("料仓3手动开关", "M13.3", 1, 1)); | add(new Res_PLCADDRESS("料仓3手动开关", "M13.3", 1, 1)); | ||||
add(new Res_PLCADDRESS("料仓4手动开关", "M10.7", 1, 1)); | add(new Res_PLCADDRESS("料仓4手动开关", "M10.7", 1, 1)); | ||||
//todo | |||||
add(new Res_PLCADDRESS("料仓5手动开关", "M102.0", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6手动开关", "M102.1", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7手动开关", "M102.2", 1, 1)); | |||||
//上下限 | //上下限 | ||||
add(new Res_PLCADDRESS("位置上下限", "-------------", 0, 0)); | add(new Res_PLCADDRESS("位置上下限", "-------------", 0, 0)); | ||||
add(new Res_PLCADDRESS("原点位置下限", "VD150", 1, 1)); | add(new Res_PLCADDRESS("原点位置下限", "VD150", 1, 1)); | ||||
@@ -748,6 +764,10 @@ public class ConfigName { | |||||
add(new Res_PLCADDRESS("料仓2下料完成", "M41.3", 1, 0)); | add(new Res_PLCADDRESS("料仓2下料完成", "M41.3", 1, 0)); | ||||
add(new Res_PLCADDRESS("料仓3下料完成", "M41.4", 1, 0)); | add(new Res_PLCADDRESS("料仓3下料完成", "M41.4", 1, 0)); | ||||
add(new Res_PLCADDRESS("料仓4下料完成", "M42.0", 1, 0)); | add(new Res_PLCADDRESS("料仓4下料完成", "M42.0", 1, 0)); | ||||
//todo | |||||
add(new Res_PLCADDRESS("料仓5下料完成", "M105.0", 1, 0)); | |||||
add(new Res_PLCADDRESS("料仓6下料完成", "M105.1", 1, 0)); | |||||
add(new Res_PLCADDRESS("料仓7下料完成", "M105.2", 1, 0)); | |||||
add(new Res_PLCADDRESS("炒锅清洗反馈", "M41.5", 1, 0)); | add(new Res_PLCADDRESS("炒锅清洗反馈", "M41.5", 1, 0)); | ||||
add(new Res_PLCADDRESS("出餐启动反馈", "M41.6", 1, 0)); | add(new Res_PLCADDRESS("出餐启动反馈", "M41.6", 1, 0)); | ||||
add(new Res_PLCADDRESS("炒锅倒菜减速位", "M41.7", 1, 0)); | add(new Res_PLCADDRESS("炒锅倒菜减速位", "M41.7", 1, 0)); | ||||
@@ -877,6 +897,13 @@ public class ConfigName { | |||||
add(new Res_PLCADDRESS("料仓4校准开关", "M13.5", 0, 1)); | add(new Res_PLCADDRESS("料仓4校准开关", "M13.5", 0, 1)); | ||||
add(new Res_PLCADDRESS("料仓4校准值", "VW120", 1, 1)); | add(new Res_PLCADDRESS("料仓4校准值", "VW120", 1, 1)); | ||||
add(new Res_PLCADDRESS("开始校正", "M12.6", 0, 1)); | add(new Res_PLCADDRESS("开始校正", "M12.6", 0, 1)); | ||||
//todo | |||||
add(new Res_PLCADDRESS("料仓5校准开关", "M101.0", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓5校准值", "VW550", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6校准开关", "M101.1", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓6校准值", "VW554", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7校准开关", "M101.2", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓7校准值", "VW558", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓自动", "-------------", 0, 0)); | add(new Res_PLCADDRESS("料仓自动", "-------------", 0, 0)); | ||||
add(new Res_PLCADDRESS("料仓1需求值", "VW106", 1, 1)); | add(new Res_PLCADDRESS("料仓1需求值", "VW106", 1, 1)); | ||||
@@ -887,13 +914,22 @@ public class ConfigName { | |||||
add(new Res_PLCADDRESS("料仓3下料", "M11.3", 0, 1)); | add(new Res_PLCADDRESS("料仓3下料", "M11.3", 0, 1)); | ||||
add(new Res_PLCADDRESS("料仓4需求值", "VW122", 1, 1)); | add(new Res_PLCADDRESS("料仓4需求值", "VW122", 1, 1)); | ||||
add(new Res_PLCADDRESS("料仓4下料", "M13.4", 0, 1)); | add(new Res_PLCADDRESS("料仓4下料", "M13.4", 0, 1)); | ||||
//todo | |||||
add(new Res_PLCADDRESS("料仓5需求值", "VW552", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓5下料", "M100.0", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓6需求值", "VW556", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6下料", "M100.1", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓7需求值", "VW560", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7下料", "M100.2", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓手动", "-------------", 0, 0)); | add(new Res_PLCADDRESS("料仓手动", "-------------", 0, 0)); | ||||
add(new Res_PLCADDRESS("料仓1手动开关", "M13.1", 1, 1)); | add(new Res_PLCADDRESS("料仓1手动开关", "M13.1", 1, 1)); | ||||
add(new Res_PLCADDRESS("料仓2手动开关", "M13.2", 1, 1)); | add(new Res_PLCADDRESS("料仓2手动开关", "M13.2", 1, 1)); | ||||
add(new Res_PLCADDRESS("料仓3手动开关", "M13.3", 1, 1)); | add(new Res_PLCADDRESS("料仓3手动开关", "M13.3", 1, 1)); | ||||
add(new Res_PLCADDRESS("料仓4手动开关", "M10.7", 1, 1)); | add(new Res_PLCADDRESS("料仓4手动开关", "M10.7", 1, 1)); | ||||
//todo | |||||
add(new Res_PLCADDRESS("料仓5手动开关", "M102.0", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6手动开关", "M102.1", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7手动开关", "M102.2", 1, 1)); | |||||
//上下限 | //上下限 | ||||
add(new Res_PLCADDRESS("位置上下限", "-------------", 0, 0)); | add(new Res_PLCADDRESS("位置上下限", "-------------", 0, 0)); | ||||
add(new Res_PLCADDRESS("原点位置下限", "VD150", 1, 1)); | add(new Res_PLCADDRESS("原点位置下限", "VD150", 1, 1)); | ||||
@@ -1003,6 +1039,10 @@ public class ConfigName { | |||||
add(new Res_PLCADDRESS("料仓2下料完成", "M41.3", 1, 0)); | add(new Res_PLCADDRESS("料仓2下料完成", "M41.3", 1, 0)); | ||||
add(new Res_PLCADDRESS("料仓3下料完成", "M41.4", 1, 0)); | add(new Res_PLCADDRESS("料仓3下料完成", "M41.4", 1, 0)); | ||||
add(new Res_PLCADDRESS("料仓4下料完成", "M42.0", 1, 0)); | add(new Res_PLCADDRESS("料仓4下料完成", "M42.0", 1, 0)); | ||||
//todo | |||||
add(new Res_PLCADDRESS("料仓5下料完成", "M105.0", 1, 0)); | |||||
add(new Res_PLCADDRESS("料仓6下料完成", "M105.1", 1, 0)); | |||||
add(new Res_PLCADDRESS("料仓7下料完成", "M105.2", 1, 0)); | |||||
add(new Res_PLCADDRESS("炒锅清洗反馈", "M41.5", 1, 0)); | add(new Res_PLCADDRESS("炒锅清洗反馈", "M41.5", 1, 0)); | ||||
add(new Res_PLCADDRESS("出餐启动反馈", "M41.6", 1, 0)); | add(new Res_PLCADDRESS("出餐启动反馈", "M41.6", 1, 0)); | ||||
add(new Res_PLCADDRESS("炒锅倒菜减速位", "M41.7", 1, 0)); | add(new Res_PLCADDRESS("炒锅倒菜减速位", "M41.7", 1, 0)); | ||||
@@ -1292,6 +1332,13 @@ public class ConfigName { | |||||
add(new Res_PLCADDRESS("料仓4校准开关", "M13.5", 0, 1)); | add(new Res_PLCADDRESS("料仓4校准开关", "M13.5", 0, 1)); | ||||
add(new Res_PLCADDRESS("料仓4校准值", "VW120", 1, 1)); | add(new Res_PLCADDRESS("料仓4校准值", "VW120", 1, 1)); | ||||
add(new Res_PLCADDRESS("开始校正", "M12.6", 0, 1)); | add(new Res_PLCADDRESS("开始校正", "M12.6", 0, 1)); | ||||
//todo | |||||
add(new Res_PLCADDRESS("料仓5校准开关", "M101.0", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓5校准值", "VW550", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6校准开关", "M101.1", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓6校准值", "VW554", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7校准开关", "M101.2", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓7校准值", "VW558", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓自动", "-------------", 0, 0)); | add(new Res_PLCADDRESS("料仓自动", "-------------", 0, 0)); | ||||
add(new Res_PLCADDRESS("料仓1需求值", "VW106", 1, 1)); | add(new Res_PLCADDRESS("料仓1需求值", "VW106", 1, 1)); | ||||
@@ -1302,13 +1349,22 @@ public class ConfigName { | |||||
add(new Res_PLCADDRESS("料仓3下料", "M11.3", 0, 1)); | add(new Res_PLCADDRESS("料仓3下料", "M11.3", 0, 1)); | ||||
add(new Res_PLCADDRESS("料仓4需求值", "VW122", 1, 1)); | add(new Res_PLCADDRESS("料仓4需求值", "VW122", 1, 1)); | ||||
add(new Res_PLCADDRESS("料仓4下料", "M13.4", 0, 1)); | add(new Res_PLCADDRESS("料仓4下料", "M13.4", 0, 1)); | ||||
//todo | |||||
add(new Res_PLCADDRESS("料仓5需求值", "VW552", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓5下料", "M100.0", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓6需求值", "VW556", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6下料", "M100.1", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓7需求值", "VW560", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7下料", "M100.2", 0, 1)); | |||||
add(new Res_PLCADDRESS("料仓手动", "-------------", 0, 0)); | add(new Res_PLCADDRESS("料仓手动", "-------------", 0, 0)); | ||||
add(new Res_PLCADDRESS("料仓1手动开关", "M13.1", 1, 1)); | add(new Res_PLCADDRESS("料仓1手动开关", "M13.1", 1, 1)); | ||||
add(new Res_PLCADDRESS("料仓2手动开关", "M13.2", 1, 1)); | add(new Res_PLCADDRESS("料仓2手动开关", "M13.2", 1, 1)); | ||||
add(new Res_PLCADDRESS("料仓3手动开关", "M13.3", 1, 1)); | add(new Res_PLCADDRESS("料仓3手动开关", "M13.3", 1, 1)); | ||||
add(new Res_PLCADDRESS("料仓4手动开关", "M10.7", 1, 1)); | add(new Res_PLCADDRESS("料仓4手动开关", "M10.7", 1, 1)); | ||||
//todo | |||||
add(new Res_PLCADDRESS("料仓5手动开关", "M102.0", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓6手动开关", "M102.1", 1, 1)); | |||||
add(new Res_PLCADDRESS("料仓7手动开关", "M102.2", 1, 1)); | |||||
//上下限 | //上下限 | ||||
add(new Res_PLCADDRESS("位置上下限", "-------------", 0, 0)); | add(new Res_PLCADDRESS("位置上下限", "-------------", 0, 0)); | ||||
add(new Res_PLCADDRESS("原点位置下限", "VD150", 1, 1)); | add(new Res_PLCADDRESS("原点位置下限", "VD150", 1, 1)); | ||||
@@ -1409,6 +1465,10 @@ public class ConfigName { | |||||
add(new Res_PLCADDRESS("料仓2下料完成", "M41.3", 1, 0)); | add(new Res_PLCADDRESS("料仓2下料完成", "M41.3", 1, 0)); | ||||
add(new Res_PLCADDRESS("料仓3下料完成", "M41.4", 1, 0)); | add(new Res_PLCADDRESS("料仓3下料完成", "M41.4", 1, 0)); | ||||
add(new Res_PLCADDRESS("料仓4下料完成", "M42.0", 1, 0)); | add(new Res_PLCADDRESS("料仓4下料完成", "M42.0", 1, 0)); | ||||
//todo | |||||
add(new Res_PLCADDRESS("料仓5下料完成", "M105.0", 1, 0)); | |||||
add(new Res_PLCADDRESS("料仓6下料完成", "M105.1", 1, 0)); | |||||
add(new Res_PLCADDRESS("料仓7下料完成", "M105.2", 1, 0)); | |||||
add(new Res_PLCADDRESS("炒锅清洗反馈", "M41.5", 1, 0)); | add(new Res_PLCADDRESS("炒锅清洗反馈", "M41.5", 1, 0)); | ||||
add(new Res_PLCADDRESS("出餐启动反馈", "M41.6", 1, 0)); | add(new Res_PLCADDRESS("出餐启动反馈", "M41.6", 1, 0)); | ||||
add(new Res_PLCADDRESS("炒锅倒菜减速位", "M41.7", 1, 0)); | add(new Res_PLCADDRESS("炒锅倒菜减速位", "M41.7", 1, 0)); | ||||
@@ -95,7 +95,11 @@ public class LogcatHelper { | |||||
public void start() { | public void start() { | ||||
if (mLogThread == null) | if (mLogThread == null) | ||||
mLogThread = new LogThread(String.valueOf(mPId), pathLogcat); | mLogThread = new LogThread(String.valueOf(mPId), pathLogcat); | ||||
mLogThread.start(); | |||||
try{ | |||||
mLogThread.start(); | |||||
}catch (Exception e){ | |||||
} | |||||
} | } | ||||
public void stop() { | public void stop() { | ||||
@@ -47,7 +47,7 @@ public class MyBitmapUtils { | |||||
} | } | ||||
//网络缓存 | //网络缓存 | ||||
if(url.contains("http")) | |||||
if(url.contains("http")&&(url.contains("png")||url.contains("jpg"))) | |||||
{ | { | ||||
Log.d("MyBitmapUtils","disPlay getBitmapFromNet url="+url); | Log.d("MyBitmapUtils","disPlay getBitmapFromNet url="+url); | ||||
mNetCacheUtils.getBitmapFromNet(ivPic,url); | mNetCacheUtils.getBitmapFromNet(ivPic,url); | ||||
@@ -74,7 +74,7 @@ public class LocalCacheUtils { | |||||
} catch (OutOfMemoryError e) { | } catch (OutOfMemoryError e) { | ||||
e.printStackTrace(); | e.printStackTrace(); | ||||
} catch (IllegalArgumentException ex) { | } catch (IllegalArgumentException ex) { | ||||
System.out.println("界面已经销毁....."); | |||||
System.out.println("从本地获取图片啦....."); | |||||
} | } | ||||
} | } | ||||
return false; | return false; | ||||
@@ -75,6 +75,8 @@ public class GlideUtil { | |||||
} | } | ||||
}) | }) | ||||
.placeholder(placeId) | .placeholder(placeId) | ||||
.error(placeId) | |||||
.apply(new RequestOptions().transform(new FitXYRoundRadiusTransform(10))) | |||||
.transition(DrawableTransitionOptions.withCrossFade(CROSS_FADE_DURATION)) | .transition(DrawableTransitionOptions.withCrossFade(CROSS_FADE_DURATION)) | ||||
.into(imageView); | .into(imageView); | ||||
} | } | ||||
@@ -83,10 +83,12 @@ public class BunkerSetupActivity extends BaseActivity { | |||||
if(ConfigName.getInstance().silosAuto){ | if(ConfigName.getInstance().silosAuto){ | ||||
binding.llSilos.setVisibility(View.GONE); | binding.llSilos.setVisibility(View.GONE); | ||||
binding.llSilos3.setVisibility(View.GONE); | binding.llSilos3.setVisibility(View.GONE); | ||||
binding.scrollView.setVisibility(View.VISIBLE); | |||||
binding.llSilosAuto.setVisibility(View.VISIBLE); | binding.llSilosAuto.setVisibility(View.VISIBLE); | ||||
}else { | }else { | ||||
binding.llSilos.setVisibility(View.VISIBLE); | binding.llSilos.setVisibility(View.VISIBLE); | ||||
binding.llSilos3.setVisibility(View.VISIBLE); | binding.llSilos3.setVisibility(View.VISIBLE); | ||||
binding.scrollView.setVisibility(View.GONE); | |||||
binding.llSilosAuto.setVisibility(View.GONE); | binding.llSilosAuto.setVisibility(View.GONE); | ||||
} | } | ||||
@@ -30,6 +30,7 @@ import com.bonait.bnframework.common.db.mode.BPA_PROCESS; | |||||
import com.bonait.bnframework.common.db.mode.BPA_SILOSANDMATERIAL; | import com.bonait.bnframework.common.db.mode.BPA_SILOSANDMATERIAL; | ||||
import com.bonait.bnframework.common.db.res.lcMode; | import com.bonait.bnframework.common.db.res.lcMode; | ||||
import com.bonait.bnframework.common.helper.I.MyClickListener; | import com.bonait.bnframework.common.helper.I.MyClickListener; | ||||
import com.bonait.bnframework.common.thread.ThreadManager; | |||||
import com.bonait.bnframework.common.utils.AlertDialogUtils; | import com.bonait.bnframework.common.utils.AlertDialogUtils; | ||||
import com.bonait.bnframework.common.utils.NetworkUtils; | import com.bonait.bnframework.common.utils.NetworkUtils; | ||||
import com.bonait.bnframework.common.utils.ToastUtils; | import com.bonait.bnframework.common.utils.ToastUtils; | ||||
@@ -208,9 +209,14 @@ public class SystemSeasoningsetFragment extends BaseFragment implements MyClickL | |||||
@Override | @Override | ||||
public void onClick(QMUIDialog dialog, int index) { | public void onClick(QMUIDialog dialog, int index) { | ||||
if(ConfigName.isTEST){ | if(ConfigName.isTEST){ | ||||
HomeGoodsViewModel.GetMaterialInfo(); | |||||
HomeGoodsViewModel.GetMaterialType(); | |||||
UpdateDataService.downLoadProcessModel("",getContext()); | |||||
ThreadManager.get().execute(new Runnable() { | |||||
@Override | |||||
public void run() { | |||||
HomeGoodsViewModel.GetMaterialInfo(); | |||||
HomeGoodsViewModel.GetMaterialType(); | |||||
UpdateDataService.downLoadProcessModel("",getContext()); | |||||
} | |||||
}); | |||||
dialog.dismiss(); | dialog.dismiss(); | ||||
return; | return; | ||||
} | } | ||||
@@ -218,9 +224,15 @@ public class SystemSeasoningsetFragment extends BaseFragment implements MyClickL | |||||
if (text != null && text.length() > 0) { | if (text != null && text.length() > 0) { | ||||
if (text.toString().equals(ConfigName.getInstance().user.pass)) { | if (text.toString().equals(ConfigName.getInstance().user.pass)) { | ||||
// ConfigData.getInstance().SyncDataInTheCloud(context,mHandler); | // ConfigData.getInstance().SyncDataInTheCloud(context,mHandler); | ||||
HomeGoodsViewModel.GetMaterialInfo(); | |||||
HomeGoodsViewModel.GetMaterialType(); | |||||
UpdateDataService.downLoadProcessModel("",getContext()); | |||||
ThreadManager.get().execute(new Runnable() { | |||||
@Override | |||||
public void run() { | |||||
HomeGoodsViewModel.GetMaterialInfo(); | |||||
HomeGoodsViewModel.GetMaterialType(); | |||||
UpdateDataService.downLoadProcessModel("",getContext()); | |||||
} | |||||
}); | |||||
dialog.dismiss(); | dialog.dismiss(); | ||||
} else { | } else { | ||||
ToastUtils.info("权限密码不正确!","The permission password is incorrect!"); | ToastUtils.info("权限密码不正确!","The permission password is incorrect!"); | ||||
@@ -32,6 +32,7 @@ import com.bonait.bnframework.common.utils.PreferenceUtils; | |||||
import com.bonait.bnframework.common.utils.ToastUtils; | import com.bonait.bnframework.common.utils.ToastUtils; | ||||
import com.bonait.bnframework.ui.viewmodel.HomeGoodsViewModel; | import com.bonait.bnframework.ui.viewmodel.HomeGoodsViewModel; | ||||
import com.bonait.bnframework.ui.viewmodel.UpdateDataService; | import com.bonait.bnframework.ui.viewmodel.UpdateDataService; | ||||
import com.bonait.bnframework.ui.widget.NewToastUtil; | |||||
import com.orhanobut.logger.Logger; | import com.orhanobut.logger.Logger; | ||||
import java.util.ArrayList; | import java.util.ArrayList; | ||||
@@ -311,6 +312,10 @@ public class SystemSystemsetFragment extends BaseFragment { | |||||
ArrayList<BPA_SILOSANDMATERIAL> silosandmaterials = QueryDB.GetSilosAndMaterialALL(); | ArrayList<BPA_SILOSANDMATERIAL> silosandmaterials = QueryDB.GetSilosAndMaterialALL(); | ||||
if (!silosArrayList.isEmpty()) { | if (!silosArrayList.isEmpty()) { | ||||
int size = silosArrayList.size(); | int size = silosArrayList.size(); | ||||
if(edittextSilos.getText().toString().isEmpty()){ | |||||
NewToastUtil.getInstance().showToastError("料仓数量不能为空"); | |||||
return; | |||||
} | |||||
int newSize = Integer.parseInt(edittextSilos.getText().toString()); | int newSize = Integer.parseInt(edittextSilos.getText().toString()); | ||||
if(size>newSize){ | if(size>newSize){ | ||||
@@ -336,7 +341,9 @@ public class SystemSystemsetFragment extends BaseFragment { | |||||
} | } | ||||
} | } | ||||
ConfigName.getInstance().silosAuto = cb_autoSilos.isChecked(); | ConfigName.getInstance().silosAuto = cb_autoSilos.isChecked(); | ||||
ConfigName.getInstance().silosNum = Integer.parseInt(edittextSilos.getText().toString()); | |||||
if(!edittextSilos.getText().toString().isEmpty()){ | |||||
ConfigName.getInstance().silosNum = Integer.parseInt(edittextSilos.getText().toString()); | |||||
} | |||||
UpdateDataService.key = edittext103.getText().toString(); | UpdateDataService.key = edittext103.getText().toString(); | ||||
@@ -53,10 +53,18 @@ public class WelcomeActivity extends BaseActivity { | |||||
float mfScreenDensity = dm.density; | float mfScreenDensity = dm.density; | ||||
LogUtils.d(" 屏幕宽高 "+"miDisplayWidth=" + miDisplayWidth + ",miDisplayHeight=" | LogUtils.d(" 屏幕宽高 "+"miDisplayWidth=" + miDisplayWidth + ",miDisplayHeight=" | ||||
+ miDisplayHeight+ "mfFontDensity=" + mfFontDensity+ "mfScreenDensity=" + mfScreenDensity+"densityDpi=" + dm.densityDpi); | + miDisplayHeight+ "mfFontDensity=" + mfFontDensity+ "mfScreenDensity=" + mfScreenDensity+"densityDpi=" + dm.densityDpi); | ||||
if(ConfigName.getInstance().isPhoneVersion){ | |||||
ConfigName.getInstance().scale = (double) miDisplayWidth /800; | |||||
} | |||||
initScaleViewDefaultValue(); | initScaleViewDefaultValue(); | ||||
initWelcome(); | initWelcome(); | ||||
} | } | ||||
@Override | |||||
protected void onResume() { | |||||
super.onResume(); | |||||
} | |||||
/** | /** | ||||
* 初始化应用界面视图适配基准值 | * 初始化应用界面视图适配基准值 | ||||
@@ -113,8 +121,7 @@ public class WelcomeActivity extends BaseActivity { | |||||
*/ | */ | ||||
public void PermissionCheck() { | public void PermissionCheck() { | ||||
String[] params = {Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.RECORD_AUDIO, Manifest.permission.CAMERA | |||||
}; | |||||
String[] params = {Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.RECORD_AUDIO, Manifest.permission.CAMERA}; | |||||
//String[] params = {Manifest.permission.WRITE_EXTERNAL_STORAGE}; | //String[] params = {Manifest.permission.WRITE_EXTERNAL_STORAGE}; | ||||
//判断是否获取权限 | //判断是否获取权限 | ||||
if (EasyPermissions.hasPermissions(this, params)) { | if (EasyPermissions.hasPermissions(this, params)) { | ||||
@@ -225,6 +232,7 @@ public class WelcomeActivity extends BaseActivity { | |||||
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); | intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); | ||||
startActivity(intent); | startActivity(intent); | ||||
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); | overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); | ||||
finish(); | |||||
// 结束所有Activity | // 结束所有Activity | ||||
ActivityLifecycleManager.get().finishAllActivity(); | ActivityLifecycleManager.get().finishAllActivity(); | ||||
} | } | ||||
@@ -521,10 +521,11 @@ public class DiyProcessActivity extends BaseActivity { | |||||
public BPA_GOODS_PROCESS_DETAIL getSelectItemFromValue() { | public BPA_GOODS_PROCESS_DETAIL getSelectItemFromValue() { | ||||
BPA_GOODS_PROCESS_DETAIL processDetail = new BPA_GOODS_PROCESS_DETAIL(); | BPA_GOODS_PROCESS_DETAIL processDetail = new BPA_GOODS_PROCESS_DETAIL(); | ||||
try { | try { | ||||
ArrayList<BPA_PROCESS> data_1 = QueryDB.GetProcessALL(); | |||||
processDetail.goodsSubAttributeGroupId = subAttributeGroupId; | |||||
long t= viewBinding.spinnerProcess.getSelectedItemId(); | |||||
String name = data_1.get((int) t).name; | |||||
// ArrayList<BPA_PROCESS> data_1 = QueryDB.GetProcessALL(); | |||||
// processDetail.goodsSubAttributeGroupId = subAttributeGroupId; | |||||
// long t= viewBinding.spinnerProcess.getSelectedItemId(); | |||||
// String name = data_1.get((int) t).name; | |||||
String name = viewBinding.spinnerProcess.getSelectedItem().toString(); | |||||
/*String name = viewBinding.spinnerProcess.getSelectedItem().toString();*/ | /*String name = viewBinding.spinnerProcess.getSelectedItem().toString();*/ | ||||
boolean IsVerify = true; | boolean IsVerify = true; | ||||
StringBuilder description = new StringBuilder(); | StringBuilder description = new StringBuilder(); | ||||
@@ -1,5 +1,7 @@ | |||||
package com.bonait.bnframework.ui.activity; | package com.bonait.bnframework.ui.activity; | ||||
import static com.bonait.bnframework.MainApplication.getContext; | |||||
import android.annotation.SuppressLint; | import android.annotation.SuppressLint; | ||||
import android.content.Context; | import android.content.Context; | ||||
import android.graphics.Rect; | import android.graphics.Rect; | ||||
@@ -31,6 +33,7 @@ import com.bonait.bnframework.common.utils.AlertDialogUtils; | |||||
import com.bonait.bnframework.databinding.DialogAddClassifyBinding; | import com.bonait.bnframework.databinding.DialogAddClassifyBinding; | ||||
import com.bonait.bnframework.databinding.DialogDeleteClassifyBinding; | import com.bonait.bnframework.databinding.DialogDeleteClassifyBinding; | ||||
import com.bonait.bnframework.databinding.FragmentGoodEditClassifyBinding; | import com.bonait.bnframework.databinding.FragmentGoodEditClassifyBinding; | ||||
import com.bonait.bnframework.ui.adapter.classify.Spinner36Adapter; | |||||
import com.bonait.bnframework.ui.adapter.goods.LocalGoodsAdapter; | import com.bonait.bnframework.ui.adapter.goods.LocalGoodsAdapter; | ||||
import com.bonait.bnframework.ui.util.DimensUtil; | import com.bonait.bnframework.ui.util.DimensUtil; | ||||
import com.bonait.bnframework.ui.util.DisplayManager; | import com.bonait.bnframework.ui.util.DisplayManager; | ||||
@@ -58,7 +61,8 @@ public class GoodEditClassifyFragment extends BaseFragment { | |||||
/** | /** | ||||
* 下拉列表 | * 下拉列表 | ||||
*/ | */ | ||||
private ArrayAdapter<String> spinnerAdapter;// | |||||
// private ArrayAdapter<String> spinnerAdapter;// | |||||
private Spinner36Adapter spinnerAdapter;// | |||||
private final Map<String, String> classifyList = new LinkedHashMap<>(); | private final Map<String, String> classifyList = new LinkedHashMap<>(); | ||||
private final List<String> classifyNameList = new ArrayList<>(); | private final List<String> classifyNameList = new ArrayList<>(); | ||||
private boolean isUserClicked = false; | private boolean isUserClicked = false; | ||||
@@ -141,10 +145,18 @@ public class GoodEditClassifyFragment extends BaseFragment { | |||||
//下拉选择 | //下拉选择 | ||||
classifyNameList.clear(); | classifyNameList.clear(); | ||||
classifyNameList.addAll(classifyList.keySet()); | classifyNameList.addAll(classifyList.keySet()); | ||||
spinnerAdapter = new ArrayAdapter<>(context, R.layout.spinner_text_item32, classifyNameList); | |||||
LogUtils.d(" initView classifyNameList="+classifyNameList); | |||||
spinnerAdapter.setDropDownViewResource(R.layout.spinner_dropdown_item32); | |||||
spinnerAdapter = new Spinner36Adapter(getContext(), classifyNameList); | |||||
viewBinding.spinnerClassify.setAdapter(spinnerAdapter); | viewBinding.spinnerClassify.setAdapter(spinnerAdapter); | ||||
// if(ConfigName.getInstance().isPhoneVersion){ | |||||
// spinnerAdapter = new Spinner36Adapter(getContext(), classifyNameList); | |||||
// viewBinding.spinnerClassify.setAdapter(spinnerAdapter); | |||||
// }else { | |||||
// spinnerAdapter = new ArrayAdapter<>(context, R.layout.spinner_text_item32, classifyNameList); | |||||
// LogUtils.d(" initView classifyNameList="+classifyNameList); | |||||
// spinnerAdapter.setDropDownViewResource(R.layout.spinner_dropdown_item32); | |||||
// viewBinding.spinnerClassify.setAdapter(spinnerAdapter); | |||||
// } | |||||
viewBinding.spinnerClassify.setOnTouchListener(new View.OnTouchListener() { | viewBinding.spinnerClassify.setOnTouchListener(new View.OnTouchListener() { | ||||
@Override | @Override | ||||
public boolean onTouch(View view, MotionEvent motionEvent) { | public boolean onTouch(View view, MotionEvent motionEvent) { | ||||
@@ -34,6 +34,7 @@ import com.bonait.bnframework.databinding.DialogAddClassifyBinding; | |||||
import com.bonait.bnframework.databinding.DialogDeleteClassifyBinding; | import com.bonait.bnframework.databinding.DialogDeleteClassifyBinding; | ||||
import com.bonait.bnframework.databinding.FragmentPropEditClassifyBinding; | import com.bonait.bnframework.databinding.FragmentPropEditClassifyBinding; | ||||
import com.bonait.bnframework.ui.adapter.classify.AttributeAdapter; | import com.bonait.bnframework.ui.adapter.classify.AttributeAdapter; | ||||
import com.bonait.bnframework.ui.adapter.classify.Spinner36Adapter; | |||||
import com.bonait.bnframework.ui.adapter.classify.SubattributeAdapter; | import com.bonait.bnframework.ui.adapter.classify.SubattributeAdapter; | ||||
import com.bonait.bnframework.ui.util.DisplayManager; | import com.bonait.bnframework.ui.util.DisplayManager; | ||||
import com.bonait.bnframework.ui.widget.NewToastUtil; | import com.bonait.bnframework.ui.widget.NewToastUtil; | ||||
@@ -70,7 +71,8 @@ public class PropEditClassifyFragment extends BaseFragment { | |||||
/** | /** | ||||
* 下拉列表 | * 下拉列表 | ||||
*/ | */ | ||||
private ArrayAdapter<String> spinnerAdapter;// | |||||
// private ArrayAdapter<String> spinnerAdapter;// | |||||
private Spinner36Adapter spinnerAdapter;// | |||||
private final Map<String, String> classifyList = new LinkedHashMap<>(); | private final Map<String, String> classifyList = new LinkedHashMap<>(); | ||||
private final List<String> classifyNameList = new ArrayList<>(); | private final List<String> classifyNameList = new ArrayList<>(); | ||||
private boolean isUserClicked = false; | private boolean isUserClicked = false; | ||||
@@ -230,10 +232,19 @@ public class PropEditClassifyFragment extends BaseFragment { | |||||
//下拉选择 | //下拉选择 | ||||
classifyNameList.clear(); | classifyNameList.clear(); | ||||
classifyNameList.addAll(classifyList.keySet()); | classifyNameList.addAll(classifyList.keySet()); | ||||
spinnerAdapter = new ArrayAdapter<>(context, R.layout.spinner_text_item32, classifyNameList); | |||||
LogUtils.d(" initView classifyNameList="+classifyNameList); | |||||
spinnerAdapter.setDropDownViewResource(R.layout.spinner_dropdown_item32); | |||||
spinnerAdapter = new Spinner36Adapter(getContext(), classifyNameList); | |||||
viewBinding.spinnerClassify.setAdapter(spinnerAdapter); | viewBinding.spinnerClassify.setAdapter(spinnerAdapter); | ||||
// if(ConfigName.getInstance().isPhoneVersion){ | |||||
// spinnerAdapter2 = new Spinner36Adapter(getContext(), classifyNameList); | |||||
// viewBinding.spinnerClassify.setAdapter(spinnerAdapter2); | |||||
// }else { | |||||
// spinnerAdapter = new ArrayAdapter<>(context, R.layout.spinner_text_item32, classifyNameList); | |||||
// LogUtils.d(" initView classifyNameList="+classifyNameList); | |||||
// spinnerAdapter.setDropDownViewResource(R.layout.spinner_dropdown_item32); | |||||
// viewBinding.spinnerClassify.setAdapter(spinnerAdapter); | |||||
// } | |||||
viewBinding.spinnerClassify.setOnTouchListener(new View.OnTouchListener() { | viewBinding.spinnerClassify.setOnTouchListener(new View.OnTouchListener() { | ||||
@Override | @Override | ||||
public boolean onTouch(View view, MotionEvent motionEvent) { | public boolean onTouch(View view, MotionEvent motionEvent) { | ||||
@@ -53,7 +53,10 @@ public class ClassifySpinnerAdapter extends BaseAdapter { | |||||
} | } | ||||
TextView textView = convertView.findViewById(R.id.textViewCustom); | TextView textView = convertView.findViewById(R.id.textViewCustom); | ||||
textView.setText(getItem(position)); | textView.setText(getItem(position)); | ||||
if(textView.getTextSize()>34* ConfigName.getInstance().scale||textView.getTextSize()<30*ConfigName.getInstance().scale){ | |||||
// if(textView.getTextSize()>34* ConfigName.getInstance().scale||textView.getTextSize()<30*ConfigName.getInstance().scale){ | |||||
// DisplayManager.scaleViewGroup(convertView.findViewById(R.id.root)); | |||||
// } | |||||
if(convertView.findViewById(R.id.root).getWidth()==0){ | |||||
DisplayManager.scaleViewGroup(convertView.findViewById(R.id.root)); | DisplayManager.scaleViewGroup(convertView.findViewById(R.id.root)); | ||||
} | } | ||||
@@ -30,7 +30,10 @@ public abstract class GoodClassifyAdapter extends BaseAdapter<BPA_GOODS_CLASSIFY | |||||
@SuppressLint("SetTextI18n") | @SuppressLint("SetTextI18n") | ||||
@Override | @Override | ||||
public void onBindViewHolder(@NonNull ViewHolder holder, @SuppressLint("RecyclerView") int position) { | public void onBindViewHolder(@NonNull ViewHolder holder, @SuppressLint("RecyclerView") int position) { | ||||
if(holder.binding.name.getTextSize()> 34* ConfigName.getInstance().scale || holder.binding.name.getTextSize()< 30*ConfigName.getInstance().scale){ | |||||
// if(holder.binding.name.getTextSize()> 34* ConfigName.getInstance().scale || holder.binding.name.getTextSize()< 30*ConfigName.getInstance().scale){ | |||||
// DisplayManager.scaleViewGroup(holder.binding.getRoot()); | |||||
// } | |||||
if(holder.binding.getRoot().getWidth()==0){ | |||||
DisplayManager.scaleViewGroup(holder.binding.getRoot()); | DisplayManager.scaleViewGroup(holder.binding.getRoot()); | ||||
} | } | ||||
holder.binding.name.setText(mData.get(position).name+""); | holder.binding.name.setText(mData.get(position).name+""); | ||||
@@ -64,7 +64,10 @@ public class SelectAttributeListAdapter extends ArrayAdapter<BPA_ATTRIBUTE> { | |||||
//分别获取 image view 和 textview 的实例 | //分别获取 image view 和 textview 的实例 | ||||
TextView name = view.findViewById(R.id.attribute_name); | TextView name = view.findViewById(R.id.attribute_name); | ||||
RecyclerView recyclerView = view.findViewById(R.id.recycle_sub_attribute); | RecyclerView recyclerView = view.findViewById(R.id.recycle_sub_attribute); | ||||
if(name.getTextSize()>34* ConfigName.getInstance().scale||name.getTextSize()<30*ConfigName.getInstance().scale){ | |||||
// if(name.getTextSize()>34* ConfigName.getInstance().scale||name.getTextSize()<30*ConfigName.getInstance().scale){ | |||||
// DisplayManager.scaleViewGroup(view.findViewById(R.id.root)); | |||||
// } | |||||
if(view.findViewById(R.id.root).getWidth()==0){ | |||||
DisplayManager.scaleViewGroup(view.findViewById(R.id.root)); | DisplayManager.scaleViewGroup(view.findViewById(R.id.root)); | ||||
} | } | ||||
name.setText(bean.name+":"); | name.setText(bean.name+":"); | ||||
@@ -45,7 +45,10 @@ public class SelectSubAttributeAdapter extends BaseAdapter<BPA_SUBATTRIBUTE,Sele | |||||
@Override | @Override | ||||
public void onBindViewHolder(@NonNull ViewHolder holder, @SuppressLint("RecyclerView") int position) { | public void onBindViewHolder(@NonNull ViewHolder holder, @SuppressLint("RecyclerView") int position) { | ||||
try { | try { | ||||
if(holder.binding.name.getTextSize()>34* ConfigName.getInstance().scale||holder.binding.name.getTextSize()<30*ConfigName.getInstance().scale){ | |||||
// if(holder.binding.name.getTextSize()>34* ConfigName.getInstance().scale||holder.binding.name.getTextSize()<30*ConfigName.getInstance().scale){ | |||||
// DisplayManager.scaleViewGroup(holder.binding.getRoot()); | |||||
// } | |||||
if(holder.binding.getRoot().getWidth()==0){ | |||||
DisplayManager.scaleViewGroup(holder.binding.getRoot()); | DisplayManager.scaleViewGroup(holder.binding.getRoot()); | ||||
} | } | ||||
BPA_SUBATTRIBUTE subattribute = mData.get(position); | BPA_SUBATTRIBUTE subattribute = mData.get(position); | ||||
@@ -10,6 +10,7 @@ import android.widget.TextView; | |||||
import androidx.annotation.NonNull; | import androidx.annotation.NonNull; | ||||
import androidx.annotation.Nullable; | import androidx.annotation.Nullable; | ||||
import com.apkfuns.logutils.LogUtils; | |||||
import com.bonait.bnframework.R; | import com.bonait.bnframework.R; | ||||
import com.bonait.bnframework.common.constant.ConfigName; | import com.bonait.bnframework.common.constant.ConfigName; | ||||
import com.bonait.bnframework.ui.util.DisplayManager; | import com.bonait.bnframework.ui.util.DisplayManager; | ||||
@@ -51,10 +52,16 @@ public class Spinner36Adapter extends BaseAdapter { | |||||
convertView = LayoutInflater.from(context).inflate(R.layout.item_spinner_text36, null); | convertView = LayoutInflater.from(context).inflate(R.layout.item_spinner_text36, null); | ||||
} | } | ||||
TextView textView = convertView.findViewById(R.id.textViewCustom); | TextView textView = convertView.findViewById(R.id.textViewCustom); | ||||
textView.setText(getItem(position)); | |||||
if(textView.getTextSize()>38* ConfigName.getInstance().scale||textView.getTextSize()<34*ConfigName.getInstance().scale){ | |||||
if(convertView.findViewById(R.id.root).getWidth()==0&&textView.getText().toString().isEmpty()){ | |||||
DisplayManager.scaleViewGroup(convertView.findViewById(R.id.root)); | DisplayManager.scaleViewGroup(convertView.findViewById(R.id.root)); | ||||
LogUtils.d(" Spinner36Adapter // 1 "+position); | |||||
} | } | ||||
textView.setText(getItem(position)); | |||||
// if(textView.getTextSize()>38* ConfigName.getInstance().scale||textView.getTextSize()<34*ConfigName.getInstance().scale){ | |||||
// DisplayManager.scaleViewGroup(convertView.findViewById(R.id.root)); | |||||
// LogUtils.d(" Spinner36Adapter // 2 "+position); | |||||
// } | |||||
return convertView; | return convertView; | ||||
} | } | ||||
@@ -16,8 +16,10 @@ import com.bonait.bnframework.common.db.mode.BPA_GOODS; | |||||
import com.bonait.bnframework.common.db.util.GoodsDBUtil; | import com.bonait.bnframework.common.db.util.GoodsDBUtil; | ||||
import com.bonait.bnframework.common.image.MyBitmapUtils; | import com.bonait.bnframework.common.image.MyBitmapUtils; | ||||
import com.bonait.bnframework.common.utils.NetworkUtils; | |||||
import com.bonait.bnframework.common.utils.ToastUtils; | import com.bonait.bnframework.common.utils.ToastUtils; | ||||
import com.bonait.bnframework.databinding.ItemCloudGoodsBinding; | import com.bonait.bnframework.databinding.ItemCloudGoodsBinding; | ||||
import com.bonait.bnframework.glide.GlideUtil; | |||||
import com.bonait.bnframework.ui.adapter.BaseAdapter; | import com.bonait.bnframework.ui.adapter.BaseAdapter; | ||||
import com.bonait.bnframework.ui.util.DisplayManager; | import com.bonait.bnframework.ui.util.DisplayManager; | ||||
@@ -39,11 +41,16 @@ public abstract class CloudGoodsAdapter extends BaseAdapter<BPA_GOODS,CloudGoods | |||||
@Override | @Override | ||||
public void onBindViewHolder(@NonNull GoodsViewHolder holder, @SuppressLint("RecyclerView") int position) { | public void onBindViewHolder(@NonNull GoodsViewHolder holder, @SuppressLint("RecyclerView") int position) { | ||||
try { | try { | ||||
LogUtils.d(" holder.binding.name.getTextSize()="+holder.binding.name.getTextSize()); | |||||
if(holder.binding.name.getTextSize()>34*ConfigName.getInstance().scale||holder.binding.name.getTextSize()<30*ConfigName.getInstance().scale){ | |||||
LogUtils.d(" holder.binding.name.getTextSize()="+holder.binding.name.getTextSize()+" width="+holder.binding.getRoot().getWidth()); | |||||
LogUtils.d(" holder.binding.name.getImagesize()="+holder.binding.name.getWidth()); | |||||
// if(holder.binding.name.getTextSize()>34*ConfigName.getInstance().scale||holder.binding.name.getTextSize()<30*ConfigName.getInstance().scale){ | |||||
// DisplayManager.scaleViewGroup(holder.binding.getRoot()); | |||||
// } | |||||
if(holder.binding.getRoot().getWidth()==0){ | |||||
DisplayManager.scaleViewGroup(holder.binding.getRoot()); | DisplayManager.scaleViewGroup(holder.binding.getRoot()); | ||||
} | } | ||||
LogUtils.d("DisplayManager holder.binding.name.getTextSize()="+holder.binding.name.getTextSize()); | |||||
LogUtils.d(" holder.binding.name.getTextSize()="+holder.binding.name.getTextSize()+" width="+holder.binding.getRoot().getWidth()); | |||||
holder.binding.add.setVisibility(View.GONE); | holder.binding.add.setVisibility(View.GONE); | ||||
BPA_GOODS goods = mData.get(position); | BPA_GOODS goods = mData.get(position); | ||||
@@ -53,7 +60,9 @@ public abstract class CloudGoodsAdapter extends BaseAdapter<BPA_GOODS,CloudGoods | |||||
if(url!=null && !url.isEmpty() &&!url.equals("未知")) | if(url!=null && !url.isEmpty() &&!url.equals("未知")) | ||||
{ | { | ||||
myBitmapUtils.disPlay(holder.binding.image,url); | myBitmapUtils.disPlay(holder.binding.image,url); | ||||
// GlideUtil.showImage(holder.binding.image.getContext(),url,holder.binding.image,R.mipmap.loading123); | |||||
if (NetworkUtils.checkNetworkAvailable(holder.binding.image.getContext())) { | |||||
GlideUtil.showImage(holder.binding.image.getContext(),url,holder.binding.image,R.mipmap.loading123); | |||||
} | |||||
}else { | }else { | ||||
holder.binding.image.setImageResource(R.mipmap.loading123); | holder.binding.image.setImageResource(R.mipmap.loading123); | ||||
} | } | ||||
@@ -16,6 +16,7 @@ import com.bonait.bnframework.common.constant.ConfigName; | |||||
import com.bonait.bnframework.common.db.mode.BPA_GOODS; | import com.bonait.bnframework.common.db.mode.BPA_GOODS; | ||||
import com.bonait.bnframework.common.image.MyBitmapUtils; | import com.bonait.bnframework.common.image.MyBitmapUtils; | ||||
import com.bonait.bnframework.common.utils.NetworkUtils; | |||||
import com.bonait.bnframework.databinding.ItemLocalGoodsBinding; | import com.bonait.bnframework.databinding.ItemLocalGoodsBinding; | ||||
import com.bonait.bnframework.glide.GlideUtil; | import com.bonait.bnframework.glide.GlideUtil; | ||||
import com.bonait.bnframework.ui.adapter.BaseAdapter; | import com.bonait.bnframework.ui.adapter.BaseAdapter; | ||||
@@ -48,11 +49,14 @@ public abstract class LocalGoodsAdapter extends BaseAdapter<BPA_GOODS,LocalGoods | |||||
@Override | @Override | ||||
public void onBindViewHolder(@NonNull GoodsViewHolder holder, @SuppressLint("RecyclerView") int position) { | public void onBindViewHolder(@NonNull GoodsViewHolder holder, @SuppressLint("RecyclerView") int position) { | ||||
try { | try { | ||||
LogUtils.d(" holder.binding.name.getTextSize()="+holder.binding.name.getTextSize()); | |||||
if(holder.binding.name.getTextSize()> 30*ConfigName.getInstance().scale || holder.binding.name.getTextSize()< 26*ConfigName.getInstance().scale){ | |||||
LogUtils.d(" holder.binding.name.getTextSize()="+holder.binding.name.getTextSize()+" width="+holder.binding.getRoot().getWidth()); | |||||
// if(holder.binding.name.getTextSize()> 30*ConfigName.getInstance().scale || holder.binding.name.getTextSize()< 26*ConfigName.getInstance().scale){ | |||||
// DisplayManager.scaleViewGroup(holder.binding.getRoot()); | |||||
// } | |||||
if(holder.binding.getRoot().getWidth()==0){ | |||||
DisplayManager.scaleViewGroup(holder.binding.getRoot()); | DisplayManager.scaleViewGroup(holder.binding.getRoot()); | ||||
} | } | ||||
LogUtils.d("DisplayManager holder.binding.name.getTextSize()="+holder.binding.name.getTextSize()); | |||||
LogUtils.d(" holder.binding.name.getTextSize()="+holder.binding.name.getTextSize()+" width="+holder.binding.getRoot().getWidth()); | |||||
holder.binding.add.setVisibility(View.GONE); | holder.binding.add.setVisibility(View.GONE); | ||||
if(isEdit){ | if(isEdit){ | ||||
@@ -78,7 +82,9 @@ public abstract class LocalGoodsAdapter extends BaseAdapter<BPA_GOODS,LocalGoods | |||||
if(url!=null && !url.isEmpty() &&!url.equals("未知")) | if(url!=null && !url.isEmpty() &&!url.equals("未知")) | ||||
{ | { | ||||
myBitmapUtils.disPlay(holder.binding.image,url); | myBitmapUtils.disPlay(holder.binding.image,url); | ||||
GlideUtil.showImage(holder.binding.image.getContext(),url,holder.binding.image,R.mipmap.loading123); | |||||
if (NetworkUtils.checkNetworkAvailable(holder.binding.image.getContext())) { | |||||
GlideUtil.showImage(holder.binding.image.getContext(),url,holder.binding.image,R.mipmap.loading123); | |||||
} | |||||
}else { | }else { | ||||
holder.binding.image.setImageResource(R.mipmap.loading123); | holder.binding.image.setImageResource(R.mipmap.loading123); | ||||
} | } | ||||
@@ -1,48 +0,0 @@ | |||||
package com.bonait.bnframework.ui.adapter.record; | |||||
import android.view.LayoutInflater; | |||||
import android.view.View; | |||||
import android.view.ViewGroup; | |||||
import androidx.annotation.NonNull; | |||||
import androidx.recyclerview.widget.RecyclerView; | |||||
import com.bonait.bnframework.common.model.DeviceRecordBean; | |||||
import com.bonait.bnframework.databinding.ItemDeviceRecordBinding; | |||||
import com.bonait.bnframework.ui.adapter.BaseAdapter; | |||||
/** | |||||
* @author: liup | |||||
* @description: | |||||
* @date: 2024/6/11 11:23. | |||||
*/ | |||||
public class DeviceRecordAdapter extends BaseAdapter<DeviceRecordBean,DeviceRecordAdapter.ViewHolder> { | |||||
@Override | |||||
protected void onItemClick(View v, int position) { | |||||
} | |||||
@NonNull | |||||
@Override | |||||
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { | |||||
return new ViewHolder(ItemDeviceRecordBinding.inflate(LayoutInflater.from(parent.getContext()), parent, false)); | |||||
} | |||||
@Override | |||||
public void onBindViewHolder(@NonNull ViewHolder holder, int position) { | |||||
holder.binding.name.setText(mData.get(position).getName()+""); | |||||
holder.binding.value.setText(mData.get(position).getValue()+""); | |||||
} | |||||
public static class ViewHolder extends RecyclerView.ViewHolder { | |||||
private ItemDeviceRecordBinding binding; | |||||
public ViewHolder(ItemDeviceRecordBinding view) { | |||||
super(view.getRoot()); | |||||
binding = view; | |||||
} | |||||
} | |||||
} |
@@ -1,77 +0,0 @@ | |||||
package com.bonait.bnframework.ui.adapter.record; | |||||
import android.annotation.SuppressLint; | |||||
import android.view.LayoutInflater; | |||||
import android.view.View; | |||||
import android.view.ViewGroup; | |||||
import androidx.annotation.NonNull; | |||||
import androidx.recyclerview.widget.RecyclerView; | |||||
import com.bonait.bnframework.common.constant.ConfigName; | |||||
import com.bonait.bnframework.common.db.mode.BPA_LOG_RECORD; | |||||
import com.bonait.bnframework.databinding.ItemLogBinding; | |||||
import com.bonait.bnframework.ui.adapter.BaseAdapter; | |||||
import com.bonait.bnframework.ui.util.DisplayManager; | |||||
/** | |||||
* @author: liup | |||||
* @description: 日志 | |||||
* @date: 2024/6/3 15:46. | |||||
*/ | |||||
public class LocalLogAdapter extends BaseAdapter<BPA_LOG_RECORD, LocalLogAdapter.ViewHolder> { | |||||
@NonNull | |||||
@Override | |||||
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { | |||||
return new ViewHolder(ItemLogBinding.inflate(LayoutInflater.from(parent.getContext()), parent, false)); | |||||
} | |||||
@SuppressLint("SetTextI18n") | |||||
@Override | |||||
public void onBindViewHolder(@NonNull ViewHolder holder, @SuppressLint("RecyclerView") int position) { | |||||
BPA_LOG_RECORD log = mData.get(position); | |||||
if(holder.binding.type.getTextSize()>28* ConfigName.getInstance().scale||holder.binding.type.getTextSize()<24*ConfigName.getInstance().scale){ | |||||
DisplayManager.scaleViewGroup(holder.binding.getRoot()); | |||||
} | |||||
holder.binding.type.setText(log.typeName+""); | |||||
holder.binding.time.setText(log.createTime+""); | |||||
if(log.userName!=null){ | |||||
holder.binding.desc.setText(log.userName+"-"+log.describe+""); | |||||
}else { | |||||
holder.binding.desc.setText(log.describe+""); | |||||
} | |||||
holder.binding.desc.setOnClickListener(v->{ | |||||
if(callBack!=null){ | |||||
callBack.onDescClick(v,position); | |||||
} | |||||
}); | |||||
} | |||||
@Override | |||||
protected void onItemClick(View v, int position) { | |||||
} | |||||
public static class ViewHolder extends RecyclerView.ViewHolder { | |||||
private ItemLogBinding binding; | |||||
public ViewHolder(ItemLogBinding view) { | |||||
super(view.getRoot()); | |||||
binding = view; | |||||
} | |||||
} | |||||
private ClickCallBack callBack; | |||||
public void setCallBack(ClickCallBack callBack) { | |||||
this.callBack = callBack; | |||||
} | |||||
public interface ClickCallBack{ | |||||
void onDescClick(View v,int position); | |||||
} | |||||
} | |||||
@@ -31,7 +31,10 @@ public abstract class OrderAdapter extends BaseAdapter<BPA_ORDER_RECORD, OrderAd | |||||
@Override | @Override | ||||
public void onBindViewHolder(@NonNull ViewHolder holder, @SuppressLint("RecyclerView") int position) { | public void onBindViewHolder(@NonNull ViewHolder holder, @SuppressLint("RecyclerView") int position) { | ||||
BPA_ORDER_RECORD order = mData.get(position);//得到当前项选中item实例 | BPA_ORDER_RECORD order = mData.get(position);//得到当前项选中item实例 | ||||
if(holder.binding.name.getTextSize()>28* ConfigName.getInstance().scale||holder.binding.name.getTextSize()<24*ConfigName.getInstance().scale){ | |||||
// if(holder.binding.name.getTextSize()>28* ConfigName.getInstance().scale||holder.binding.name.getTextSize()<24*ConfigName.getInstance().scale){ | |||||
// DisplayManager.scaleViewGroup(holder.binding.getRoot()); | |||||
// } | |||||
if(holder.binding.getRoot().getWidth()==0){ | |||||
DisplayManager.scaleViewGroup(holder.binding.getRoot()); | DisplayManager.scaleViewGroup(holder.binding.getRoot()); | ||||
} | } | ||||
@@ -32,7 +32,10 @@ public abstract class SubOrderAdapter extends BaseAdapter<BPA_SUBORDER_RECORD, S | |||||
@Override | @Override | ||||
public void onBindViewHolder(@NonNull ViewHolder holder, @SuppressLint("RecyclerView") int position) { | public void onBindViewHolder(@NonNull ViewHolder holder, @SuppressLint("RecyclerView") int position) { | ||||
BPA_SUBORDER_RECORD order = mData.get(position);//得到当前项选中item实例 | BPA_SUBORDER_RECORD order = mData.get(position);//得到当前项选中item实例 | ||||
if(holder.binding.name.getTextSize()>28*ConfigName.getInstance().scale||holder.binding.name.getTextSize()<24*ConfigName.getInstance().scale){ | |||||
// if(holder.binding.name.getTextSize()>28*ConfigName.getInstance().scale||holder.binding.name.getTextSize()<24*ConfigName.getInstance().scale){ | |||||
// DisplayManager.scaleViewGroup(holder.binding.getRoot()); | |||||
// } | |||||
if(holder.binding.getRoot().getWidth()==0){ | |||||
DisplayManager.scaleViewGroup(holder.binding.getRoot()); | DisplayManager.scaleViewGroup(holder.binding.getRoot()); | ||||
} | } | ||||
if(order.subNames!=null && !order.subNames.isEmpty()){ | if(order.subNames!=null && !order.subNames.isEmpty()){ | ||||
@@ -30,7 +30,10 @@ public abstract class DiyStepAdapter extends BaseAdapter<BPA_GOODS_PROCESS_DETAI | |||||
@Override | @Override | ||||
public void onBindViewHolder(@NonNull ViewHolder holder, @SuppressLint("RecyclerView") int position) { | public void onBindViewHolder(@NonNull ViewHolder holder, @SuppressLint("RecyclerView") int position) { | ||||
try { | try { | ||||
if(holder.binding.name.getTextSize()> 34 *ConfigName.getInstance().scale|| holder.binding.name.getTextSize()< 30*ConfigName.getInstance().scale){ | |||||
// if(holder.binding.name.getTextSize()> 34 *ConfigName.getInstance().scale|| holder.binding.name.getTextSize()< 30*ConfigName.getInstance().scale){ | |||||
// DisplayManager.scaleViewGroup(holder.binding.getRoot()); | |||||
// } | |||||
if(holder.binding.getRoot().getWidth()==0){ | |||||
DisplayManager.scaleViewGroup(holder.binding.getRoot()); | DisplayManager.scaleViewGroup(holder.binding.getRoot()); | ||||
} | } | ||||
@@ -1,76 +0,0 @@ | |||||
package com.bonait.bnframework.ui.adapter.step; | |||||
import android.annotation.SuppressLint; | |||||
import android.view.LayoutInflater; | |||||
import android.view.View; | |||||
import android.view.ViewGroup; | |||||
import androidx.annotation.NonNull; | |||||
import androidx.recyclerview.widget.RecyclerView; | |||||
import com.bonait.bnframework.common.constant.ConfigName; | |||||
import com.bonait.bnframework.common.db.mode.BPA_GOODS_PROCESS_DETAIL; | |||||
import com.bonait.bnframework.databinding.ItemStepDescBinding; | |||||
import com.bonait.bnframework.ui.adapter.BaseAdapter; | |||||
import com.bonait.bnframework.ui.util.DisplayManager; | |||||
/** | |||||
* @author: liup | |||||
* @description: 步骤列表 | |||||
* @date: 2024/5/8 15:36. | |||||
*/ | |||||
public class StepAdapter extends BaseAdapter<BPA_GOODS_PROCESS_DETAIL, StepAdapter.ViewHolder> { | |||||
@NonNull | |||||
@Override | |||||
public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { | |||||
return new ViewHolder(ItemStepDescBinding.inflate(LayoutInflater.from(parent.getContext()), parent, false)); | |||||
} | |||||
@Override | |||||
public void onBindViewHolder(@NonNull ViewHolder holder, @SuppressLint("RecyclerView") int position) { | |||||
try { | |||||
if(holder.binding.name.getTextSize()> 34* ConfigName.getInstance().scale || holder.binding.name.getTextSize()< 30*ConfigName.getInstance().scale){ | |||||
DisplayManager.scaleViewGroup(holder.binding.getRoot()); | |||||
} | |||||
holder.binding.root.setSelected(mCurrentPosition == position); | |||||
String name = mData.get(position).processms;//mData.get(position).processname +" "+ | |||||
holder.binding.name.setText((position+1)+"."+name); | |||||
holder.binding.root.setOnClickListener(new View.OnClickListener() { | |||||
@Override | |||||
public void onClick(View view) { | |||||
// int last = mCurrentPosition; | |||||
// mCurrentPosition = position; | |||||
// notifyItemChanged(last); | |||||
// notifyItemChanged(mCurrentPosition); | |||||
// onItemClick(view,position); | |||||
} | |||||
}); | |||||
} catch (Exception e) { | |||||
e.printStackTrace(); | |||||
} | |||||
} | |||||
@Override | |||||
protected void onItemClick(View v, int position) { | |||||
} | |||||
public static class ViewHolder extends RecyclerView.ViewHolder { | |||||
private ItemStepDescBinding binding; | |||||
public ViewHolder(ItemStepDescBinding view) { | |||||
super(view.getRoot()); | |||||
binding = view; | |||||
} | |||||
} | |||||
} | |||||
@@ -348,6 +348,11 @@ public class LocalGoodsFragment extends BaseFragment { | |||||
NewToastUtil.getInstance().showToast("请先创建属性分类","Please create attribute classification first"); | NewToastUtil.getInstance().showToast("请先创建属性分类","Please create attribute classification first"); | ||||
return; | return; | ||||
} | } | ||||
List<BPA_GOODS_CLASSIFY> goodsClassify= GoodsClassifyDBUtil.getAll(); | |||||
if (goodsClassify.isEmpty()){ | |||||
NewToastUtil.getInstance().showToast("请先创建商品分类","Please create attribute classification first"); | |||||
return; | |||||
} | |||||
addGoodsDialog(); | addGoodsDialog(); | ||||
} | } | ||||
} | } | ||||
@@ -163,7 +163,7 @@ public class HomeGoodsViewModel extends ViewModel { | |||||
*/ | */ | ||||
public static void GetMaterialInfo(){ | public static void GetMaterialInfo(){ | ||||
String url = UpdateDataService.path+"/api/ExternalPlatform/Material/GetMaterialPageList";//saasbase | String url = UpdateDataService.path+"/api/ExternalPlatform/Material/GetMaterialPageList";//saasbase | ||||
LogUtils.d("GetMaterialInfo url="+url); | |||||
LogUtils.d("GetMaterialInfo url="+url+" UpdateDataService.key="+UpdateDataService.key); | |||||
String key =UpdateDataService.key; | String key =UpdateDataService.key; | ||||
RecordManager.getInstance().addLogRecord("数据接收", "接收物料信息-"+url); | RecordManager.getInstance().addLogRecord("数据接收", "接收物料信息-"+url); | ||||
APIHelper.PostT(url,new MaterialRequestPar(1,100),key,new TypeReference<APIResultT<MaterialData>>(){}).OnSource(s->{ | APIHelper.PostT(url,new MaterialRequestPar(1,100),key,new TypeReference<APIResultT<MaterialData>>(){}).OnSource(s->{ | ||||
@@ -388,7 +388,7 @@ public class UpdateAllDataService { | |||||
String imgUrl = ""; | String imgUrl = ""; | ||||
if(good.url!=null){ | if(good.url!=null){ | ||||
String path = ConfigName.getFileRoot(MainApplication.getContext())+ ConfigName.dataPath+"/WebImage/"; | String path = ConfigName.getFileRoot(MainApplication.getContext())+ ConfigName.dataPath+"/WebImage/"; | ||||
imgUrl = "https://bpa.oss-cn-chengdu.aliyuncs.com/hkerp/test/goods//"+good.url.replace(path,""); | |||||
imgUrl = "";//"https://bpa.oss-cn-chengdu.aliyuncs.com/hkerp/test/goods//"+good.url.replace(path,""); | |||||
} | } | ||||
upMaterialBean.add(new GoodsDataInfo(good.id,good.name,"",imgUrl,"0",false,good.propClassifyId,classify.name)); | upMaterialBean.add(new GoodsDataInfo(good.id,good.name,"",imgUrl,"0",false,good.propClassifyId,classify.name)); | ||||
} | } | ||||
@@ -428,7 +428,7 @@ public class UpdateDataService { | |||||
String imgUrl = ""; | String imgUrl = ""; | ||||
if(goods.url!=null){ | if(goods.url!=null){ | ||||
String path = ConfigName.getFileRoot(MainApplication.getContext())+ ConfigName.dataPath+"/WebImage/"; | String path = ConfigName.getFileRoot(MainApplication.getContext())+ ConfigName.dataPath+"/WebImage/"; | ||||
imgUrl = "https://bpa.oss-cn-chengdu.aliyuncs.com/hkerp/test/goods//"+goods.url.replace(path,""); | |||||
imgUrl = "";//"https://bpa.oss-cn-chengdu.aliyuncs.com/hkerp/test/goods//"+goods.url.replace(path,""); | |||||
} | } | ||||
upMaterialBean.add(new GoodsDataInfo(goods.id,goods.name,"",imgUrl,"0",false,goods.propClassifyId, | upMaterialBean.add(new GoodsDataInfo(goods.id,goods.name,"",imgUrl,"0",false,goods.propClassifyId, | ||||
classify.name)); | classify.name)); | ||||
@@ -12,32 +12,32 @@ | |||||
android:background="?attr/app_content_bg_color" | android:background="?attr/app_content_bg_color" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:layout_marginBottom="@dimen/home_tab_height" | |||||
android:layout_marginBottom="@dimen/home_bottom_height" | |||||
android:fitsSystemWindows="true"/> | android:fitsSystemWindows="true"/> | ||||
<com.google.android.material.bottomnavigation.BottomNavigationView | <com.google.android.material.bottomnavigation.BottomNavigationView | ||||
android:id="@+id/navigation" | android:id="@+id/navigation" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="@dimen/home_tab_height" | |||||
android:layout_height="@dimen/home_bottom_height" | |||||
android:layout_gravity="bottom" | android:layout_gravity="bottom" | ||||
android:background="@drawable/qmui_list_item_bg_with_border_top" | android:background="@drawable/qmui_list_item_bg_with_border_top" | ||||
app:itemHorizontalTranslationEnabled="false" | app:itemHorizontalTranslationEnabled="false" | ||||
app:labelVisibilityMode="labeled" | app:labelVisibilityMode="labeled" | ||||
app:menu="@menu/navigation" /> | app:menu="@menu/navigation" /> | ||||
<com.bonait.bnframework.common.watermark.WaterMarkView | |||||
android:singleLine="false" | |||||
android:id="@+id/wm" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="match_parent" | |||||
app:water_mark_align="CENTER" | |||||
app:water_mark_degree="-30" | |||||
app:water_mark_dx="300px" | |||||
app:water_mark_dy="340px" | |||||
app:water_mark_sync="true" | |||||
app:water_mark_text="" | |||||
app:water_mark_textColor="@color/watermarkcolor" | |||||
app:water_mark_textBold="true" | |||||
app:water_mark_textSize="14px" /> | |||||
<!-- <com.bonait.bnframework.common.watermark.WaterMarkView--> | |||||
<!-- android:singleLine="false"--> | |||||
<!-- android:id="@+id/wm"--> | |||||
<!-- android:layout_width="match_parent"--> | |||||
<!-- android:layout_height="match_parent"--> | |||||
<!-- app:water_mark_align="CENTER"--> | |||||
<!-- app:water_mark_degree="-30"--> | |||||
<!-- app:water_mark_dx="300px"--> | |||||
<!-- app:water_mark_dy="340px"--> | |||||
<!-- app:water_mark_sync="true"--> | |||||
<!-- app:water_mark_text=""--> | |||||
<!-- app:water_mark_textColor="@color/watermarkcolor"--> | |||||
<!-- app:water_mark_textBold="true"--> | |||||
<!-- app:water_mark_textSize="14px" />--> | |||||
</com.qmuiteam.qmui.widget.QMUIWindowInsetLayout> | </com.qmuiteam.qmui.widget.QMUIWindowInsetLayout> |
@@ -23,20 +23,20 @@ | |||||
</com.bonait.bnframework.common.view.BottomNavigationBar> | </com.bonait.bnframework.common.view.BottomNavigationBar> | ||||
<com.bonait.bnframework.common.watermark.WaterMarkView | |||||
android:singleLine="false" | |||||
android:id="@+id/wm" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="match_parent" | |||||
app:water_mark_align="CENTER" | |||||
app:water_mark_degree="-30" | |||||
app:water_mark_dx="300px" | |||||
app:water_mark_dy="340px" | |||||
app:water_mark_sync="true" | |||||
app:water_mark_text="" | |||||
app:water_mark_textColor="@color/watermarkcolor" | |||||
app:water_mark_textBold="true" | |||||
app:water_mark_textSize="14px" /> | |||||
<!-- <com.bonait.bnframework.common.watermark.WaterMarkView--> | |||||
<!-- android:singleLine="false"--> | |||||
<!-- android:id="@+id/wm"--> | |||||
<!-- android:layout_width="match_parent"--> | |||||
<!-- android:layout_height="match_parent"--> | |||||
<!-- app:water_mark_align="CENTER"--> | |||||
<!-- app:water_mark_degree="-30"--> | |||||
<!-- app:water_mark_dx="300px"--> | |||||
<!-- app:water_mark_dy="340px"--> | |||||
<!-- app:water_mark_sync="true"--> | |||||
<!-- app:water_mark_text=""--> | |||||
<!-- app:water_mark_textColor="@color/watermarkcolor"--> | |||||
<!-- app:water_mark_textBold="true"--> | |||||
<!-- app:water_mark_textSize="14px" />--> | |||||
<com.bonait.bnframework.modules.home.fragment.from.CookingActivity | <com.bonait.bnframework.modules.home.fragment.from.CookingActivity | ||||
@@ -129,7 +129,7 @@ | |||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:orientation="vertical" | android:orientation="vertical" | ||||
android:layout_marginTop="100dp" | |||||
android:layout_marginTop="80dp" | |||||
> | > | ||||
<com.bonait.bnframework.modules.home.fragment.mode.jingdutiao1 | <com.bonait.bnframework.modules.home.fragment.mode.jingdutiao1 | ||||
android:id="@+id/silos1" | android:id="@+id/silos1" | ||||
@@ -161,6 +161,7 @@ | |||||
android:tag="水"/> | android:tag="水"/> | ||||
</LinearLayout> | </LinearLayout> | ||||
<ScrollView | <ScrollView | ||||
android:id="@+id/scrollView" | |||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_marginTop="100dp" | android:layout_marginTop="100dp" | ||||
android:layout_height="match_parent"> | android:layout_height="match_parent"> | ||||
@@ -22,12 +22,20 @@ | |||||
<!-- app:itemIconTint="@null"--> | <!-- app:itemIconTint="@null"--> | ||||
<!-- app:itemIconSize="0dp"--> | <!-- app:itemIconSize="0dp"--> | ||||
<!-- android:fitsSystemWindows="true"/>--> | <!-- android:fitsSystemWindows="true"/>--> | ||||
<com.qmuiteam.qmui.widget.QMUIViewPager | |||||
android:id="@+id/viewpager" | |||||
android:layout_marginTop="@dimen/home_tab_height" | |||||
android:paddingTop="@dimen/dp_80" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="match_parent" | |||||
android:background="?attr/app_content_bg_color" /> | |||||
<LinearLayout | <LinearLayout | ||||
android:id="@+id/ll_tab" | android:id="@+id/ll_tab" | ||||
android:layout_marginTop="60dp" | |||||
android:layout_marginTop="@dimen/home_tab_height" | |||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:orientation="horizontal" | android:orientation="horizontal" | ||||
android:paddingTop="@dimen/dp_5" | |||||
android:paddingTop="@dimen/dp_10" | |||||
android:layout_marginLeft="@dimen/dp_25" | android:layout_marginLeft="@dimen/dp_25" | ||||
android:layout_marginRight="@dimen/dp_25" | android:layout_marginRight="@dimen/dp_25" | ||||
android:layout_height="@dimen/dp_70"> | android:layout_height="@dimen/dp_70"> | ||||
@@ -57,13 +65,6 @@ | |||||
/> | /> | ||||
</LinearLayout> | </LinearLayout> | ||||
<com.qmuiteam.qmui.widget.QMUIViewPager | |||||
android:id="@+id/viewpager" | |||||
android:layout_marginTop="135dp" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="match_parent" | |||||
android:background="?attr/app_content_bg_color" /> | |||||
<com.qmuiteam.qmui.widget.QMUITopBarLayout | <com.qmuiteam.qmui.widget.QMUITopBarLayout | ||||
android:id="@+id/topbar" | android:id="@+id/topbar" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
@@ -58,9 +58,9 @@ | |||||
android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_centerHorizontal="true" | android:layout_centerHorizontal="true" | ||||
android:layout_marginLeft="100dp" | |||||
android:layout_marginLeft="50dp" | |||||
android:layout_marginTop="100dp" | android:layout_marginTop="100dp" | ||||
android:layout_marginRight="100dp" | |||||
android:layout_marginRight="50dp" | |||||
android:orientation="vertical"> | android:orientation="vertical"> | ||||
<LinearLayout | <LinearLayout | ||||
@@ -14,7 +14,7 @@ | |||||
android:id="@+id/navigation" | android:id="@+id/navigation" | ||||
android:layout_marginTop="54dp" | android:layout_marginTop="54dp" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="@dimen/home_tab_height" | |||||
android:layout_height="@dimen/home_bottom_height" | |||||
android:layout_gravity="top" | android:layout_gravity="top" | ||||
android:background="@drawable/qmui_list_item_bg_with_border_bottom" | android:background="@drawable/qmui_list_item_bg_with_border_bottom" | ||||
app:itemHorizontalTranslationEnabled="false" | app:itemHorizontalTranslationEnabled="false" | ||||
@@ -51,15 +51,15 @@ | |||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:scrollbars="none" | android:scrollbars="none" | ||||
android:layout_marginLeft="20dp" | |||||
android:layout_marginRight="20dp" | |||||
android:layout_marginLeft="10dp" | |||||
android:layout_marginRight="10dp" | |||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" | app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||||
android:orientation="vertical"> | android:orientation="vertical"> | ||||
<com.qmuiteam.qmui.layout.QMUIRelativeLayout | |||||
<LinearLayout | |||||
android:id="@+id/kshr" | android:id="@+id/kshr" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="120dp" | android:layout_height="120dp" | ||||
android:gravity="center_vertical" | |||||
android:layout_marginTop="10dp" | android:layout_marginTop="10dp" | ||||
android:background="@drawable/hr_bj"> | android:background="@drawable/hr_bj"> | ||||
<ImageView | <ImageView | ||||
@@ -67,16 +67,16 @@ | |||||
android:layout_height="80dp" | android:layout_height="80dp" | ||||
android:src="@mipmap/hr" | android:src="@mipmap/hr" | ||||
android:layout_centerVertical="true" | android:layout_centerVertical="true" | ||||
android:layout_marginLeft="40dp"/> | |||||
android:layout_marginLeft="10dp"/> | |||||
<TextView | <TextView | ||||
android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_centerVertical="true" | android:layout_centerVertical="true" | ||||
android:layout_marginLeft="150dp" | |||||
android:layout_marginLeft="10dp" | |||||
android:text="开始烹饪" | android:text="开始烹饪" | ||||
android:textColor="@color/white" | android:textColor="@color/white" | ||||
android:textSize="@dimen/card_view_in_height" /> | android:textSize="@dimen/card_view_in_height" /> | ||||
</com.qmuiteam.qmui.layout.QMUIRelativeLayout> | |||||
</LinearLayout> | |||||
<LinearLayout | <LinearLayout | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
@@ -98,27 +98,28 @@ | |||||
android:layout_marginLeft="20dp"/> | android:layout_marginLeft="20dp"/> | ||||
</com.qmuiteam.qmui.layout.QMUIRelativeLayout> | </com.qmuiteam.qmui.layout.QMUIRelativeLayout> | ||||
<com.qmuiteam.qmui.layout.QMUIRelativeLayout | |||||
<LinearLayout | |||||
android:id="@+id/cp" | android:id="@+id/cp" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="120dp" | android:layout_height="120dp" | ||||
android:layout_marginTop="10dp" | android:layout_marginTop="10dp" | ||||
android:gravity="center_vertical" | |||||
android:background="@drawable/cp_bj"> | android:background="@drawable/cp_bj"> | ||||
<ImageView | <ImageView | ||||
android:layout_width="80dp" | android:layout_width="80dp" | ||||
android:layout_height="80dp" | android:layout_height="80dp" | ||||
android:src="@mipmap/cp" | android:src="@mipmap/cp" | ||||
android:layout_centerVertical="true" | android:layout_centerVertical="true" | ||||
android:layout_marginLeft="20dp"/> | |||||
android:layout_marginLeft="10dp"/> | |||||
<TextView | <TextView | ||||
android:layout_width="200dp" | android:layout_width="200dp" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_centerVertical="true" | android:layout_centerVertical="true" | ||||
android:layout_marginLeft="120dp" | |||||
android:layout_marginLeft="10dp" | |||||
android:text="菜谱" | android:text="菜谱" | ||||
android:textColor="@color/white" | android:textColor="@color/white" | ||||
android:textSize="@dimen/card_view_in_height" /> | android:textSize="@dimen/card_view_in_height" /> | ||||
</com.qmuiteam.qmui.layout.QMUIRelativeLayout> | |||||
</LinearLayout> | |||||
</LinearLayout> | </LinearLayout> | ||||
@@ -126,11 +127,13 @@ | |||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:orientation="horizontal"> | android:orientation="horizontal"> | ||||
<com.qmuiteam.qmui.layout.QMUIRelativeLayout | |||||
<LinearLayout | |||||
android:id="@+id/wh" | android:id="@+id/wh" | ||||
android:layout_width="180dp" | |||||
android:layout_width="0dp" | |||||
android:layout_weight="1" | |||||
android:layout_height="120dp" | android:layout_height="120dp" | ||||
android:layout_marginTop="10dp" | android:layout_marginTop="10dp" | ||||
android:gravity="center_vertical" | |||||
android:background="@drawable/wh_bj"> | android:background="@drawable/wh_bj"> | ||||
<ImageView | <ImageView | ||||
android:layout_width="80dp" | android:layout_width="80dp" | ||||
@@ -142,17 +145,19 @@ | |||||
android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_centerVertical="true" | android:layout_centerVertical="true" | ||||
android:layout_marginLeft="100dp" | |||||
android:layout_marginLeft="10dp" | |||||
android:text="维护" | android:text="维护" | ||||
android:textColor="@color/white" | android:textColor="@color/white" | ||||
android:textSize="@dimen/card_view_in_height" /> | android:textSize="@dimen/card_view_in_height" /> | ||||
</com.qmuiteam.qmui.layout.QMUIRelativeLayout> | |||||
</LinearLayout> | |||||
<com.qmuiteam.qmui.layout.QMUIRelativeLayout | |||||
<LinearLayout | |||||
android:id="@+id/sz" | android:id="@+id/sz" | ||||
android:layout_width="match_parent" | |||||
android:layout_width="0dp" | |||||
android:layout_weight="1" | |||||
android:layout_height="120dp" | android:layout_height="120dp" | ||||
android:gravity="center_vertical" | |||||
android:layout_marginTop="10dp" | android:layout_marginTop="10dp" | ||||
android:layout_marginLeft="@dimen/dp_10" | android:layout_marginLeft="@dimen/dp_10" | ||||
android:background="@drawable/sz_bj"> | android:background="@drawable/sz_bj"> | ||||
@@ -166,11 +171,11 @@ | |||||
android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_centerVertical="true" | android:layout_centerVertical="true" | ||||
android:layout_marginLeft="100dp" | |||||
android:layout_marginLeft="10dp" | |||||
android:text="设置" | android:text="设置" | ||||
android:textColor="@color/white" | android:textColor="@color/white" | ||||
android:textSize="@dimen/card_view_in_height" /> | android:textSize="@dimen/card_view_in_height" /> | ||||
</com.qmuiteam.qmui.layout.QMUIRelativeLayout> | |||||
</LinearLayout> | |||||
</LinearLayout> | </LinearLayout> | ||||
</LinearLayout> | </LinearLayout> | ||||
@@ -20,7 +20,7 @@ | |||||
android:paddingBottom="@dimen/dp_25" | android:paddingBottom="@dimen/dp_25" | ||||
android:layout_marginBottom="2dp" | android:layout_marginBottom="2dp" | ||||
android:ellipsize="middle" | android:ellipsize="middle" | ||||
android:textSize="22sp" | |||||
android:textSize="28sp" | |||||
android:text="@string/btn_addclass" | android:text="@string/btn_addclass" | ||||
android:textColor="#823E17" | android:textColor="#823E17" | ||||
android:gravity="center" | android:gravity="center" | ||||
@@ -310,12 +310,12 @@ | |||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_marginLeft="5dp" | android:layout_marginLeft="5dp" | ||||
android:background="@drawable/input_bj" | android:background="@drawable/input_bj" | ||||
android:hint="请输入序号" | |||||
android:hint="料仓数量" | |||||
android:inputType="number" | android:inputType="number" | ||||
android:maxLines="1" | android:maxLines="1" | ||||
android:padding="3dp" | android:padding="3dp" | ||||
android:textSize="12dp" | android:textSize="12dp" | ||||
tools:text="4"/> | |||||
android:text="4"/> | |||||
</TableRow> | </TableRow> | ||||
</TableLayout> | </TableLayout> | ||||
@@ -12,8 +12,8 @@ | |||||
android:orientation="vertical" | android:orientation="vertical" | ||||
android:layout_gravity="center" | android:layout_gravity="center" | ||||
android:padding="@dimen/dp_20" | android:padding="@dimen/dp_20" | ||||
android:layout_marginStart="@dimen/dp_40" | |||||
android:layout_marginEnd="@dimen/dp_40" | |||||
android:layout_marginStart="@dimen/dp_30" | |||||
android:layout_marginEnd="@dimen/dp_30" | |||||
> | > | ||||
<TextView | <TextView | ||||
@@ -22,7 +22,7 @@ | |||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
tools:text="@string/tip_save_menu_title" | tools:text="@string/tip_save_menu_title" | ||||
android:textStyle="bold" | android:textStyle="bold" | ||||
android:textSize="42sp" | |||||
android:textSize="@dimen/sp_36" | |||||
android:textColor="@color/black" | android:textColor="@color/black" | ||||
/> | /> | ||||
@@ -31,7 +31,7 @@ | |||||
android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
tools:text="@string/tip_save_menu_content" | tools:text="@string/tip_save_menu_content" | ||||
android:textSize="38sp" | |||||
android:textSize="@dimen/sp_32" | |||||
android:textColor="@color/gray_light" | android:textColor="@color/gray_light" | ||||
android:layout_marginTop="40dp" | android:layout_marginTop="40dp" | ||||
android:layout_marginLeft="@dimen/dp_10" | android:layout_marginLeft="@dimen/dp_10" | ||||
@@ -51,7 +51,7 @@ | |||||
android:id="@+id/tv_cancel" | android:id="@+id/tv_cancel" | ||||
android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
android:layout_height="100dp" | android:layout_height="100dp" | ||||
android:textSize="@dimen/sp_38" | |||||
android:textSize="@dimen/sp_36" | |||||
android:textColor="@color/blue_primary" | android:textColor="@color/blue_primary" | ||||
android:text="@string/btn_cancel" | android:text="@string/btn_cancel" | ||||
android:layout_alignParentLeft="true" | android:layout_alignParentLeft="true" | ||||
@@ -62,7 +62,7 @@ | |||||
android:id="@+id/tv_confirm" | android:id="@+id/tv_confirm" | ||||
android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
android:layout_height="100dp" | android:layout_height="100dp" | ||||
android:textSize="38sp" | |||||
android:textSize="@dimen/sp_36" | |||||
android:textColor="@color/blue_primary" | android:textColor="@color/blue_primary" | ||||
android:text="@string/tip_save_confirm" | android:text="@string/tip_save_confirm" | ||||
android:gravity="center" | android:gravity="center" | ||||
@@ -15,9 +15,8 @@ | |||||
android:id="@+id/image" | android:id="@+id/image" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="0dp" | android:layout_height="0dp" | ||||
android:adjustViewBounds="true" | |||||
android:scaleType="fitXY" | android:scaleType="fitXY" | ||||
android:src="@mipmap/loading123" | |||||
tools:src="@mipmap/loading123" | |||||
app:layout_constraintLeft_toLeftOf="parent" | app:layout_constraintLeft_toLeftOf="parent" | ||||
app:layout_constraintTop_toTopOf="parent" | app:layout_constraintTop_toTopOf="parent" | ||||
app:layout_constraintBottom_toBottomOf="parent" | app:layout_constraintBottom_toBottomOf="parent" | ||||
@@ -17,7 +17,7 @@ | |||||
android:layout_height="0dp" | android:layout_height="0dp" | ||||
android:adjustViewBounds="true" | android:adjustViewBounds="true" | ||||
android:scaleType="fitXY" | android:scaleType="fitXY" | ||||
android:src="@mipmap/loading123" | |||||
tools:src="@mipmap/loading123" | |||||
app:layout_constraintLeft_toLeftOf="parent" | app:layout_constraintLeft_toLeftOf="parent" | ||||
app:layout_constraintTop_toTopOf="parent" | app:layout_constraintTop_toTopOf="parent" | ||||
app:layout_constraintBottom_toBottomOf="parent" | app:layout_constraintBottom_toBottomOf="parent" | ||||
@@ -15,7 +15,6 @@ | |||||
android:gravity="center_vertical" | android:gravity="center_vertical" | ||||
tools:text="请选择" | tools:text="请选择" | ||||
android:textSize="@dimen/sp_36" | android:textSize="@dimen/sp_36" | ||||
android:background="@color/activity_background" | |||||
android:textColor="@color/black"> | android:textColor="@color/black"> | ||||
</CheckedTextView> | </CheckedTextView> | ||||
</LinearLayout> | </LinearLayout> | ||||
@@ -1,7 +1,8 @@ | |||||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<resources> | <resources> | ||||
<dimen name="home_tab_height">56dp</dimen> | |||||
<dimen name="home_tab_height">80dp</dimen> | |||||
<dimen name="home_bottom_height">56dp</dimen> | |||||
<dimen name="common_content_spacing">@dimen/qmui_content_spacing_horizontal</dimen> | <dimen name="common_content_spacing">@dimen/qmui_content_spacing_horizontal</dimen> | ||||
<!-- ListView --> | <!-- ListView --> | ||||