|
@@ -3373,20 +3373,24 @@ protected void commonAction(String value, int groupIndex,int itemIndex,JSONObjec
|
|
|
public void setUpSwitchCellHolder(CommonEditorSwitchCellHolder holder, View cell, JSONObject item_json, boolean readonly, int group, int child) {
|
|
public void setUpSwitchCellHolder(CommonEditorSwitchCellHolder holder, View cell, JSONObject item_json, boolean readonly, int group, int child) {
|
|
|
|
|
|
|
|
String title = null;
|
|
String title = null;
|
|
|
|
|
+ String desc = null;
|
|
|
String value = null;
|
|
String value = null;
|
|
|
String required = null;
|
|
String required = null;
|
|
|
|
|
|
|
|
holder.group = group;
|
|
holder.group = group;
|
|
|
holder.child = child;
|
|
holder.child = child;
|
|
|
holder.title_lb.setText(null);
|
|
holder.title_lb.setText(null);
|
|
|
|
|
+ holder.desc_lb.setText(null);
|
|
|
holder.aSwitch.setTag(group + "_" + child + "_" + "switch");
|
|
holder.aSwitch.setTag(group + "_" + child + "_" + "switch");
|
|
|
try {
|
|
try {
|
|
|
|
|
|
|
|
title = item_json.optString("aname");
|
|
title = item_json.optString("aname");
|
|
|
|
|
+ desc = item_json.optString("desc");
|
|
|
value = item_json.optString("value");
|
|
value = item_json.optString("value");
|
|
|
required = item_json.optString("required");
|
|
required = item_json.optString("required");
|
|
|
|
|
|
|
|
holder.title_lb.setText(title);
|
|
holder.title_lb.setText(title);
|
|
|
|
|
+ holder.desc_lb.setText(desc);
|
|
|
|
|
|
|
|
if (required.equals("true")) {
|
|
if (required.equals("true")) {
|
|
|
holder.startMark.setVisibility(View.VISIBLE);
|
|
holder.startMark.setVisibility(View.VISIBLE);
|