|
@@ -34,13 +34,14 @@ import com.core.base.BaseActivity;
|
|
|
import com.core.model.SelectBean;
|
|
import com.core.model.SelectBean;
|
|
|
import com.core.net.http.ViewUtil;
|
|
import com.core.net.http.ViewUtil;
|
|
|
import com.core.utils.CommonUtil;
|
|
import com.core.utils.CommonUtil;
|
|
|
-import com.core.widget.VoiceSearchView;
|
|
|
|
|
import com.core.widget.EmptyLayout;
|
|
import com.core.widget.EmptyLayout;
|
|
|
|
|
+import com.core.widget.VoiceSearchView;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
import java.util.LinkedHashMap;
|
|
import java.util.LinkedHashMap;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 通用列表界面
|
|
* 通用列表界面
|
|
@@ -134,21 +135,21 @@ public class SelectActivity extends BaseActivity {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
//多选解析
|
|
//多选解析
|
|
|
- if (ApiUtils.getApiModel() instanceof ApiPlatform){
|
|
|
|
|
|
|
+ if (ApiUtils.getApiModel() instanceof ApiPlatform) {
|
|
|
parseDataMuliSelect(message);
|
|
parseDataMuliSelect(message);
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
dispalayMuliSelect(message);
|
|
dispalayMuliSelect(message);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
setAdapter();
|
|
setAdapter();
|
|
|
|
|
|
|
|
- } else if(msg.what==0x15){
|
|
|
|
|
|
|
+ } else if (msg.what == 0x15) {
|
|
|
LogUtil.d("单选模式和单选接口");
|
|
LogUtil.d("单选模式和单选接口");
|
|
|
if (!StringUtil.isEmpty(key)) {
|
|
if (!StringUtil.isEmpty(key)) {
|
|
|
if (StringUtil.isEmpty(showKey)) return;
|
|
if (StringUtil.isEmpty(showKey)) return;
|
|
@@ -156,7 +157,7 @@ public class SelectActivity extends BaseActivity {
|
|
|
JSONArray array = object.getJSONArray(key);
|
|
JSONArray array = object.getJSONArray(key);
|
|
|
if (array == null || array.size() <= 0) {
|
|
if (array == null || array.size() <= 0) {
|
|
|
//emptyLayout.showEmpty();
|
|
//emptyLayout.showEmpty();
|
|
|
- // return;
|
|
|
|
|
|
|
+ // return;
|
|
|
}
|
|
}
|
|
|
if (formBeaan == null) formBeaan = new ArrayList<>();
|
|
if (formBeaan == null) formBeaan = new ArrayList<>();
|
|
|
else formBeaan.clear();
|
|
else formBeaan.clear();
|
|
@@ -187,7 +188,7 @@ public class SelectActivity extends BaseActivity {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
loadMutilDataByNet1();
|
|
loadMutilDataByNet1();
|
|
|
- }else if (msg.what==0x16){
|
|
|
|
|
|
|
+ } else if (msg.what == 0x16) {
|
|
|
LogUtil.d("单选模式和单选接口");
|
|
LogUtil.d("单选模式和单选接口");
|
|
|
if (!StringUtil.isEmpty(key)) {
|
|
if (!StringUtil.isEmpty(key)) {
|
|
|
if (StringUtil.isEmpty(showKey)) return;
|
|
if (StringUtil.isEmpty(showKey)) return;
|
|
@@ -225,7 +226,7 @@ public class SelectActivity extends BaseActivity {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
setAdapter();
|
|
setAdapter();
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
emptyLayout.showEmpty();
|
|
emptyLayout.showEmpty();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -247,91 +248,104 @@ public class SelectActivity extends BaseActivity {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * @desc:下拉联动接口
|
|
|
|
|
- * @author:Arison on 2017/4/10
|
|
|
|
|
- */
|
|
|
|
|
|
|
+ * @desc:下拉联动接口
|
|
|
|
|
+ * @author:Arison on 2017/4/10
|
|
|
|
|
+ */
|
|
|
private void dispalayMuliSelect(String message) {
|
|
private void dispalayMuliSelect(String message) {
|
|
|
String dataStr = JSON.parseObject(message).getString("data");
|
|
String dataStr = JSON.parseObject(message).getString("data");
|
|
|
JSONArray datas = JSON.parseArray(dataStr);//values
|
|
JSONArray datas = JSON.parseArray(dataStr);//values
|
|
|
JSONArray dbfinds = JSON.parseObject(message).getJSONArray("dbfinds");
|
|
JSONArray dbfinds = JSON.parseObject(message).getJSONArray("dbfinds");
|
|
|
- if (datas!=null){
|
|
|
|
|
- if (datas.size()==0){
|
|
|
|
|
|
|
+ if (datas != null) {
|
|
|
|
|
+ if (datas.size() == 0) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (dbfinds==null)return;
|
|
|
|
|
|
|
+ if (dbfinds == null) return;
|
|
|
String fieldkey = "";
|
|
String fieldkey = "";
|
|
|
- ArrayList<String> fieldKeys=new ArrayList<>();//联动数据
|
|
|
|
|
|
|
+ ArrayList<String> fieldKeys = new ArrayList<>();//联动数据
|
|
|
for (int i = 0; i < dbfinds.size(); i++) {
|
|
for (int i = 0; i < dbfinds.size(); i++) {
|
|
|
JSONObject item = dbfinds.getJSONObject(i);
|
|
JSONObject item = dbfinds.getJSONObject(i);
|
|
|
String key = item.getString("field");
|
|
String key = item.getString("field");
|
|
|
if (key.equals(showKey)) {
|
|
if (key.equals(showKey)) {
|
|
|
fieldkey = item.getString("dbGridField");
|
|
fieldkey = item.getString("dbGridField");
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- if (fields!=null){//联动选择
|
|
|
|
|
- for (int j=0;j<fields.length;j++){
|
|
|
|
|
- if (key.equals(fields[j])){
|
|
|
|
|
- fieldKeys.add(item.getString("dbGridField"));
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (fields != null) {//联动选择
|
|
|
|
|
+ for (int j = 0; j < fields.length; j++) {
|
|
|
|
|
+ if (key.equals(fields[j])) {
|
|
|
|
|
+ fieldKeys.add(item.getString("dbGridField"));
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
if (formBeaan == null) formBeaan = new ArrayList<>();
|
|
if (formBeaan == null) formBeaan = new ArrayList<>();
|
|
|
else formBeaan.clear();
|
|
else formBeaan.clear();
|
|
|
SelectBean bean = null;
|
|
SelectBean bean = null;
|
|
|
- if (fields!=null){
|
|
|
|
|
- ArrayList<String> values=new ArrayList<>();
|
|
|
|
|
- for (int i = 0; i < datas.size(); i++) {
|
|
|
|
|
- JSONObject item= datas.getJSONObject(i);
|
|
|
|
|
- bean = new SelectBean();
|
|
|
|
|
- bean.setId(id);
|
|
|
|
|
- String value2 = "";
|
|
|
|
|
- for (int j=0;j<fieldKeys.size();j++) {
|
|
|
|
|
- if (j== fieldKeys.size()-1){
|
|
|
|
|
- value2=value2+ item.getString(fieldKeys.get(j));
|
|
|
|
|
- }else{
|
|
|
|
|
- value2=value2+ item.getString(fieldKeys.get(j))+"/";
|
|
|
|
|
- }
|
|
|
|
|
- values.add(item.getString(fieldKeys.get(j)));
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (StringUtil.isEmpty(item.getString(fieldkey))){
|
|
|
|
|
- bean.setName(item.getString(showKey));
|
|
|
|
|
- }else{
|
|
|
|
|
- if (StringUtil.isEmpty(value2)){
|
|
|
|
|
- bean.setName(item.getString(fieldkey));
|
|
|
|
|
- }else{
|
|
|
|
|
- bean.setName(item.getString(fieldkey)+"("+value2+")");
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- bean.setFields(JSON.toJSONString(values));
|
|
|
|
|
- bean.setJson(JSON.toJSONString(datas.get(i)));
|
|
|
|
|
- formBeaan.add(bean);
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- }else{
|
|
|
|
|
|
|
+ if (fields != null) {
|
|
|
|
|
+ ArrayList<String> values = new ArrayList<>();
|
|
|
|
|
+ for (int i = 0; i < datas.size(); i++) {
|
|
|
|
|
+ JSONObject item = datas.getJSONObject(i);
|
|
|
|
|
+ bean = new SelectBean();
|
|
|
|
|
+ bean.setId(id);
|
|
|
|
|
+ String value2 = "";
|
|
|
|
|
+ for (int j = 0; j < fieldKeys.size(); j++) {
|
|
|
|
|
+ if (j == fieldKeys.size() - 1) {
|
|
|
|
|
+ value2 = value2 + item.getString(fieldKeys.get(j));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ value2 = value2 + item.getString(fieldKeys.get(j)) + "/";
|
|
|
|
|
+ }
|
|
|
|
|
+ values.add(item.getString(fieldKeys.get(j)));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (StringUtil.isEmpty(item.getString(fieldkey))) {
|
|
|
|
|
+ bean.setName(item.getString(showKey));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ if (StringUtil.isEmpty(value2)) {
|
|
|
|
|
+ bean.setName(item.getString(fieldkey));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ bean.setName(item.getString(fieldkey) + "(" + value2 + ")");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ // 修改为显示所有的
|
|
|
|
|
+ bean.setShowName(getName(item));
|
|
|
|
|
+ bean.setFields(JSON.toJSONString(values));
|
|
|
|
|
+ bean.setJson(JSON.toJSONString(datas.get(i)));
|
|
|
|
|
+ formBeaan.add(bean);
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
for (int i = 0; i < datas.size(); i++) {
|
|
for (int i = 0; i < datas.size(); i++) {
|
|
|
System.out.println("value" + i + ":" + datas.getJSONObject(i).getString(fieldkey));
|
|
System.out.println("value" + i + ":" + datas.getJSONObject(i).getString(fieldkey));
|
|
|
- JSONObject item= datas.getJSONObject(i);
|
|
|
|
|
|
|
+ JSONObject item = datas.getJSONObject(i);
|
|
|
bean = new SelectBean();
|
|
bean = new SelectBean();
|
|
|
bean.setId(id);
|
|
bean.setId(id);
|
|
|
- if (StringUtil.isEmpty(item.getString(fieldkey))){
|
|
|
|
|
|
|
+ if (StringUtil.isEmpty(item.getString(fieldkey))) {
|
|
|
bean.setName(item.getString(showKey));
|
|
bean.setName(item.getString(showKey));
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
bean.setName(item.getString(fieldkey));
|
|
bean.setName(item.getString(fieldkey));
|
|
|
}
|
|
}
|
|
|
bean.setObject(JSON.toJSONString(datas.get(i)));
|
|
bean.setObject(JSON.toJSONString(datas.get(i)));
|
|
|
bean.setJson(JSON.toJSONString(datas.get(i)));
|
|
bean.setJson(JSON.toJSONString(datas.get(i)));
|
|
|
formBeaan.add(bean);
|
|
formBeaan.add(bean);
|
|
|
- }
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private String getName(JSONObject item) {
|
|
|
|
|
+ StringBuilder builder = new StringBuilder();
|
|
|
|
|
+ for (Map.Entry<String, Object> e : item.entrySet()) {
|
|
|
|
|
+ if (e.getValue() != null && !e.getValue().equals("")) {
|
|
|
|
|
+ builder.append(e.getValue() + ",");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ if (builder.length() > 1) {
|
|
|
|
|
+ builder.delete(builder.length() - 1, builder.length());
|
|
|
|
|
+ }
|
|
|
|
|
+ return builder.toString();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- public void parseDataMuliSelect(String message){
|
|
|
|
|
|
|
+ public void parseDataMuliSelect(String message) {
|
|
|
JSONObject object = JSON.parseObject(message);
|
|
JSONObject object = JSON.parseObject(message);
|
|
|
if (!StringUtil.isEmpty(key)) {//root
|
|
if (!StringUtil.isEmpty(key)) {//root
|
|
|
if (StringUtil.isEmpty(showKey)) return;
|
|
if (StringUtil.isEmpty(showKey)) return;
|
|
@@ -367,9 +381,9 @@ public class SelectActivity extends BaseActivity {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
private VoiceSearchView search_edit;
|
|
private VoiceSearchView search_edit;
|
|
|
|
|
|
|
|
|
|
|
|
@@ -465,7 +479,7 @@ public class SelectActivity extends BaseActivity {
|
|
|
list.setAdapter(adapter);
|
|
list.setAdapter(adapter);
|
|
|
if (type == 1) {
|
|
if (type == 1) {
|
|
|
loadDateByNet();
|
|
loadDateByNet();
|
|
|
- }else if(type==3){
|
|
|
|
|
|
|
+ } else if (type == 3) {
|
|
|
loadMutilDataByNet();
|
|
loadMutilDataByNet();
|
|
|
}
|
|
}
|
|
|
list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
|
list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
|
@@ -475,7 +489,7 @@ public class SelectActivity extends BaseActivity {
|
|
|
if (isSingle) {
|
|
if (isSingle) {
|
|
|
putDownInput();
|
|
putDownInput();
|
|
|
SelectBean bean = formBeaan.get(i);
|
|
SelectBean bean = formBeaan.get(i);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// String names[]=bean.getName().split("\\(");
|
|
// String names[]=bean.getName().split("\\(");
|
|
|
// bean.setName(names[0]);
|
|
// bean.setName(names[0]);
|
|
|
bean.setName(bean.getName());
|
|
bean.setName(bean.getName());
|
|
@@ -505,18 +519,18 @@ public class SelectActivity extends BaseActivity {
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
String[] fields;
|
|
String[] fields;
|
|
|
|
|
|
|
|
private void initIntent() {
|
|
private void initIntent() {
|
|
|
Intent intent = getIntent();
|
|
Intent intent = getIntent();
|
|
|
if (intent == null) return;
|
|
if (intent == null) return;
|
|
|
type = intent.getIntExtra("type", -1);
|
|
type = intent.getIntExtra("type", -1);
|
|
|
- method=intent.getStringExtra("method");
|
|
|
|
|
|
|
+ method = intent.getStringExtra("method");
|
|
|
title = intent.getStringExtra("title");
|
|
title = intent.getStringExtra("title");
|
|
|
id = intent.getIntExtra("id", 0);
|
|
id = intent.getIntExtra("id", 0);
|
|
|
object = intent.getParcelableExtra("object");
|
|
object = intent.getParcelableExtra("object");
|
|
|
- fields=intent.getStringArrayExtra("fields");
|
|
|
|
|
|
|
+ fields = intent.getStringArrayExtra("fields");
|
|
|
LogUtil.d(JSON.toJSONString(object));
|
|
LogUtil.d(JSON.toJSONString(object));
|
|
|
isSingle = intent.getBooleanExtra("isSingle", true);
|
|
isSingle = intent.getBooleanExtra("isSingle", true);
|
|
|
int reid = intent.getIntExtra("reid", -1);
|
|
int reid = intent.getIntExtra("reid", -1);
|
|
@@ -531,7 +545,7 @@ public class SelectActivity extends BaseActivity {
|
|
|
param = (HashMap<String, Object>) bundle.getSerializable("param");
|
|
param = (HashMap<String, Object>) bundle.getSerializable("param");
|
|
|
} else if (type == 2) {//本地
|
|
} else if (type == 2) {//本地
|
|
|
formBeaan = intent.getParcelableArrayListExtra("data");
|
|
formBeaan = intent.getParcelableArrayListExtra("data");
|
|
|
- }else if(type==3){
|
|
|
|
|
|
|
+ } else if (type == 3) {
|
|
|
//网络请求,两个相同格式体的接口数据合并操作
|
|
//网络请求,两个相同格式体的接口数据合并操作
|
|
|
action = intent.getStringExtra("action");
|
|
action = intent.getStringExtra("action");
|
|
|
key = intent.getStringExtra("key");//主数据集合key值
|
|
key = intent.getStringExtra("key");//主数据集合key值
|
|
@@ -547,13 +561,13 @@ public class SelectActivity extends BaseActivity {
|
|
|
private void loadDateByNet() {
|
|
private void loadDateByNet() {
|
|
|
if (progressDialog != null)
|
|
if (progressDialog != null)
|
|
|
progressDialog.show();
|
|
progressDialog.show();
|
|
|
- String url ="";
|
|
|
|
|
|
|
+ String url = "";
|
|
|
LinkedHashMap<String, Object> headers = new LinkedHashMap<>();
|
|
LinkedHashMap<String, Object> headers = new LinkedHashMap<>();
|
|
|
- if (ApiUtils.getApiModel() instanceof ApiPlatform){
|
|
|
|
|
- url= action;
|
|
|
|
|
|
|
+ if (ApiUtils.getApiModel() instanceof ApiPlatform) {
|
|
|
|
|
+ url = action;
|
|
|
headers.put("Cookie", ApiConfig.getInstance(ApiUtils.getApiModel()).getmApiBase().getCookie());
|
|
headers.put("Cookie", ApiConfig.getInstance(ApiUtils.getApiModel()).getmApiBase().getCookie());
|
|
|
- }else {
|
|
|
|
|
- url= CommonUtil.getAppBaseUrl(ct) + action;
|
|
|
|
|
|
|
+ } else {
|
|
|
|
|
+ url = CommonUtil.getAppBaseUrl(ct) + action;
|
|
|
headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
|
}
|
|
}
|
|
|
String sessionId = CommonUtil.getSharedPreferences(ct, "sessionId");
|
|
String sessionId = CommonUtil.getSharedPreferences(ct, "sessionId");
|
|
@@ -562,14 +576,14 @@ public class SelectActivity extends BaseActivity {
|
|
|
} else {
|
|
} else {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- if (StringUtil.isEmpty(method))method="post";
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ if (StringUtil.isEmpty(method)) method = "post";
|
|
|
ViewUtil.httpSendRequest(ct, url, param, handler, headers, 0x11, null, null, method);
|
|
ViewUtil.httpSendRequest(ct, url, param, handler, headers, 0x11, null, null, method);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- private void loadMutilDataByNet(){
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ private void loadMutilDataByNet() {
|
|
|
if (progressDialog != null)
|
|
if (progressDialog != null)
|
|
|
progressDialog.show();
|
|
progressDialog.show();
|
|
|
String url = CommonUtil.getAppBaseUrl(ct) + action;
|
|
String url = CommonUtil.getAppBaseUrl(ct) + action;
|
|
@@ -584,7 +598,7 @@ public class SelectActivity extends BaseActivity {
|
|
|
ViewUtil.httpSendRequest(ct, url, param, handler, headers, 0x15, null, null, "post");
|
|
ViewUtil.httpSendRequest(ct, url, param, handler, headers, 0x15, null, null, "post");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private void loadMutilDataByNet1(){
|
|
|
|
|
|
|
+ private void loadMutilDataByNet1() {
|
|
|
if (progressDialog != null)
|
|
if (progressDialog != null)
|
|
|
progressDialog.show();
|
|
progressDialog.show();
|
|
|
String url = CommonUtil.getAppBaseUrl(ct) + action;
|
|
String url = CommonUtil.getAppBaseUrl(ct) + action;
|
|
@@ -598,7 +612,7 @@ public class SelectActivity extends BaseActivity {
|
|
|
headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
headers.put("Cookie", "JSESSIONID=" + CommonUtil.getSharedPreferences(ct, "sessionId"));
|
|
|
ViewUtil.httpSendRequest(ct, url, param1, handler, headers, 0x16, null, null, "post");
|
|
ViewUtil.httpSendRequest(ct, url, param1, handler, headers, 0x16, null, null, "post");
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
class ListAdapter extends BaseAdapter {
|
|
class ListAdapter extends BaseAdapter {
|
|
|
private List<SelectBean> formBeaan;
|
|
private List<SelectBean> formBeaan;
|
|
@@ -649,7 +663,7 @@ public class SelectActivity extends BaseActivity {
|
|
|
holer = (ViewHoler) view.getTag();
|
|
holer = (ViewHoler) view.getTag();
|
|
|
}
|
|
}
|
|
|
chche = formBeaan.get(i);
|
|
chche = formBeaan.get(i);
|
|
|
- holer.name_tv.setText(StringUtil.isEmpty(chche.getName()) ? "" : chche.getName());
|
|
|
|
|
|
|
+ holer.name_tv.setText(StringUtil.isEmpty(chche.getShowName()) ? "" : chche.getShowName());
|
|
|
holer.select_scb.setChecked(chche.isClick());
|
|
holer.select_scb.setChecked(chche.isClick());
|
|
|
if (isSingle) {
|
|
if (isSingle) {
|
|
|
holer.select_scb.setVisibility(View.GONE);
|
|
holer.select_scb.setVisibility(View.GONE);
|