|
|
@@ -5,6 +5,7 @@ import android.content.Intent;
|
|
|
import android.graphics.Color;
|
|
|
import android.os.Build;
|
|
|
import android.os.Bundle;
|
|
|
+import android.support.annotation.NonNull;
|
|
|
import android.support.v7.app.AppCompatActivity;
|
|
|
import android.support.v7.widget.LinearLayoutManager;
|
|
|
import android.support.v7.widget.RecyclerView;
|
|
|
@@ -22,10 +23,16 @@ import com.google.gson.Gson;
|
|
|
import com.lzy.okgo.OkGo;
|
|
|
import com.lzy.okgo.cache.CacheMode;
|
|
|
import com.lzy.okgo.callback.StringCallback;
|
|
|
+import com.scwang.smartrefresh.layout.SmartRefreshLayout;
|
|
|
+import com.scwang.smartrefresh.layout.api.RefreshLayout;
|
|
|
+import com.scwang.smartrefresh.layout.listener.OnRefreshListener;
|
|
|
import com.silence.commonframe.ApiService;
|
|
|
import com.silence.commonframe.R;
|
|
|
+import com.silence.commonframe.activity.Interface.SiteDetailListener;
|
|
|
+import com.silence.commonframe.activity.presenter.SiteDetailPresenter;
|
|
|
import com.silence.commonframe.adapter.MyAdapter;
|
|
|
import com.silence.commonframe.adapter.SitedetailMineAdapter;
|
|
|
+import com.silence.commonframe.base.basemvp.BaseActivity;
|
|
|
import com.silence.commonframe.bean.IsDeviceChange;
|
|
|
import com.silence.commonframe.bean.JsonBean;
|
|
|
import com.silence.commonframe.model.IsChoose;
|
|
|
@@ -48,10 +55,9 @@ import butterknife.ButterKnife;
|
|
|
import okhttp3.Call;
|
|
|
import okhttp3.Response;
|
|
|
|
|
|
-public class SitedetailActivity extends AppCompatActivity {//implements View.OnClickListener
|
|
|
+public class SitedetailActivity extends BaseActivity implements SiteDetailListener.View {
|
|
|
private List<HashMap<String, String>> listmap = new ArrayList<HashMap<String, String>>() ;
|
|
|
private SitedetailMineAdapter myAdapter1;
|
|
|
- private TitlePopupMenu titlePopup;
|
|
|
private ArrayList<Integer> listChose = new ArrayList<Integer>();
|
|
|
private IsChoose isChoose;
|
|
|
private ArrayList<IsChoose> arrayList;
|
|
|
@@ -61,12 +67,15 @@ public class SitedetailActivity extends AppCompatActivity {//implements View.OnC
|
|
|
private String strId = "";
|
|
|
StringBuilder str = new StringBuilder();
|
|
|
|
|
|
- @BindView(R.id.my_recycler_view)
|
|
|
+ @BindView(R.id.my_recycler_view)
|
|
|
RecyclerView myRecyclerView;
|
|
|
- @BindView(R.id.edit)
|
|
|
+ @BindView(R.id.edit)
|
|
|
Button bt;
|
|
|
- @BindView(R.id.delete)
|
|
|
- Button btdel;
|
|
|
+ @BindView(R.id.delete)
|
|
|
+ Button btdel;
|
|
|
+ @BindView(R.id.srl_refresh)
|
|
|
+ SmartRefreshLayout srlRefresh;
|
|
|
+
|
|
|
private ArrayList<String> listData = new ArrayList<>();
|
|
|
private int iSSHOW = GONECHECK;
|
|
|
private static final int GONECHECK = 0;
|
|
|
@@ -77,17 +86,25 @@ public class SitedetailActivity extends AppCompatActivity {//implements View.OnC
|
|
|
List<String> listdata0 = Data.getList();
|
|
|
ArrayList<Integer> listIndex = new ArrayList<>();
|
|
|
|
|
|
+ int page = 1;
|
|
|
+
|
|
|
+ SiteDetailPresenter presenter;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int getLayoutId() {
|
|
|
+ return R.layout.activity_sitedetail;
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
|
- protected void onCreate(Bundle savedInstanceState) {
|
|
|
- super.onCreate(savedInstanceState);
|
|
|
- setContentView(R.layout.activity_sitedetail);
|
|
|
- ButterKnife.bind(this);
|
|
|
- AtyContainer.getInstance().addActivity(this);
|
|
|
- initWindows();
|
|
|
+ public void initPresenter() {
|
|
|
+ presenter = new SiteDetailPresenter(this,this);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void initView() {
|
|
|
+ setTitle(this,"场所列表","",true);
|
|
|
arrayList = new ArrayList<>();
|
|
|
deleteArrayList = new ArrayList<>();
|
|
|
- init();
|
|
|
myAdapter1 = new SitedetailMineAdapter(SitedetailActivity.this,listmap,arrayList);
|
|
|
myRecyclerView.setLayoutManager(new LinearLayoutManager(SitedetailActivity.this));
|
|
|
myRecyclerView.setAdapter(myAdapter1);
|
|
|
@@ -98,32 +115,23 @@ public class SitedetailActivity extends AppCompatActivity {//implements View.OnC
|
|
|
iSSHOW = (iSSHOW == GONECHECK) ? SHOWCHECK : GONECHECK;
|
|
|
myAdapter1.setMode(iSSHOW);
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
});
|
|
|
|
|
|
btdel.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
|
-
|
|
|
-
|
|
|
if (deleteArrayList.size() == 0){
|
|
|
Toast.makeText(SitedetailActivity.this,"请选中对应删除的场所!",Toast.LENGTH_SHORT).show();
|
|
|
return;
|
|
|
- }
|
|
|
- if (deleteArrayList.size() > 5){
|
|
|
- Toast.makeText(SitedetailActivity.this,"请删除对应的对应数据不要大于5条",Toast.LENGTH_SHORT).show();
|
|
|
- return;
|
|
|
} else {
|
|
|
-
|
|
|
for (int i = 0; i < deleteArrayList.size(); i++) {
|
|
|
myAdapter1.remove(deleteArrayList.get(i));
|
|
|
// myAdapter1.removeData(i);
|
|
|
}
|
|
|
}
|
|
|
getSiteId();
|
|
|
- delSite();
|
|
|
-
|
|
|
+ presenter.delSite();
|
|
|
if (flagId.equals(Data.getListSiteid().toString())){
|
|
|
Toast.makeText(SitedetailActivity.this,"数据已经删除!",Toast.LENGTH_SHORT).show();
|
|
|
return;
|
|
|
@@ -131,25 +139,27 @@ public class SitedetailActivity extends AppCompatActivity {//implements View.OnC
|
|
|
flagId = Data.getListSiteid().toString();
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
|
|
|
- @Override
|
|
|
- protected void onResume() {
|
|
|
- super.onResume();
|
|
|
- int size = listmap.size();
|
|
|
- if (size > 0){
|
|
|
- listmap.clear();
|
|
|
- listIndex.clear();
|
|
|
- myRecyclerView.setAdapter(myAdapter1);
|
|
|
- myAdapter1.notifyDataSetChanged();
|
|
|
- }
|
|
|
- getSite();
|
|
|
+ srlRefresh.setOnRefreshListener(new OnRefreshListener() {
|
|
|
+ @Override
|
|
|
+ public void onRefresh(@NonNull RefreshLayout refreshLayout) {
|
|
|
+ int size = listmap.size();
|
|
|
+ if (size > 0){
|
|
|
+ listmap.clear();
|
|
|
+ listIndex.clear();
|
|
|
+ myRecyclerView.setAdapter(myAdapter1);
|
|
|
+ myAdapter1.notifyDataSetChanged();
|
|
|
+ }
|
|
|
+ presenter.getSite();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ srlRefresh.setEnableLoadMore(false);
|
|
|
+ srlRefresh.autoRefresh();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 对设备的号码进行对应的拼接
|
|
|
*/
|
|
|
-
|
|
|
private void getSiteId(){
|
|
|
for(int i = 0; i<Data.getListSiteid().size(); i++){
|
|
|
str.append(Data.getListSiteid().get(i));
|
|
|
@@ -159,136 +169,6 @@ public class SitedetailActivity extends AppCompatActivity {//implements View.OnC
|
|
|
str.setLength(0);
|
|
|
|
|
|
}
|
|
|
- private void delSite() {
|
|
|
- String url = ApiService.httpUrl1+Data.getConfigUrl()+"/deleteSite?ids="+ strId;
|
|
|
- OkGo.get(url)
|
|
|
- .tag(this) // 请求的 tag, 主要用于取消对应的请求
|
|
|
- .cacheKey("cacheGetKey") // 设置当前请求的缓存key,建议每个不同功能的请求设置一个
|
|
|
- .cacheMode(CacheMode.DEFAULT) // 缓存模式,详细请看缓存介绍
|
|
|
- .headers("token", Data.getToken())
|
|
|
- .execute(new StringCallback() {
|
|
|
- @Override
|
|
|
- public void onSuccess(String s, Call call, Response response) {
|
|
|
- SiteModel siteModel = new Gson().fromJson(s,SiteModel.class);
|
|
|
- String message = siteModel.getMsg();
|
|
|
- int code = siteModel.getCode();
|
|
|
- if (message.equalsIgnoreCase("success")){
|
|
|
- Toast.makeText(SitedetailActivity.this,"数据删除成功!",Toast.LENGTH_SHORT).show();
|
|
|
- for (int i = 0;i<listIndex.size();i++){ //不需要删除的删掉
|
|
|
- if (listIndex.get(i) == -1){
|
|
|
- listIndex.remove(i);
|
|
|
- i--;
|
|
|
- }
|
|
|
- }
|
|
|
- Collections.sort(listIndex); //对listIndex存的值排序
|
|
|
- for(int i = 0; i<Data.getListSiteid().size(); i++){
|
|
|
- listdata0.remove((int)listIndex.get(Data.getListSiteid().size()-i-1)); //尾删,头删的话比较麻烦
|
|
|
- }
|
|
|
- Data.getListSiteid().clear();
|
|
|
- Data.setList(listdata0); //上面可以直接Data.getList().remove()操作
|
|
|
- listIndex.clear();
|
|
|
- IsDeviceChange.setChangeSize(true); //判断设备页面场所列表要进行刷新
|
|
|
- onResume();
|
|
|
- }else {
|
|
|
- Toast.makeText(SitedetailActivity.this,""+message,Toast.LENGTH_SHORT).show();
|
|
|
- LoginIn.tokenOut(code,message,SitedetailActivity.this);
|
|
|
- iSSHOW = 0;
|
|
|
- deleteArrayList.clear();
|
|
|
- onResume();
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- private void init() {
|
|
|
- titlePopup = new TitlePopupMenu(this, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
|
|
|
- titlePopup.setItemOnClickListener(new TitlePopupMenu.OnItemOnClickListener() {
|
|
|
- @Override
|
|
|
- public void onItemClick(String desc) {
|
|
|
- showToast(desc);
|
|
|
- }
|
|
|
- });
|
|
|
- titlePopup.addItem(getResources().getDrawable(R.mipmap.homeadd),
|
|
|
- "添加联系人");
|
|
|
- titlePopup.addItem(getResources().getDrawable(R.mipmap.homeadd),
|
|
|
- "删除联系人");
|
|
|
- }
|
|
|
-
|
|
|
- private void showToast(String msg) {
|
|
|
- if (msg.equals("添加联系人")) {
|
|
|
- Toast.makeText(this,"添加联系人!",Toast.LENGTH_SHORT).show();
|
|
|
- android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(this);
|
|
|
- builder.setTitle("添加联系人");
|
|
|
- // 通过LayoutInflater来加载一个xml的布局文件作为一个View对象
|
|
|
- View view = LayoutInflater.from(this).inflate(R.layout.item_addsite, null);
|
|
|
- // 设置我们自己定义的布局文件作为弹出框的Content
|
|
|
- builder.setView(view);
|
|
|
-
|
|
|
- final EditText username = (EditText)view.findViewById(R.id.deviceno);
|
|
|
- builder.setPositiveButton("确定", new DialogInterface.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(DialogInterface dialog, int which)
|
|
|
- {
|
|
|
- String a = username.getText().toString().trim();
|
|
|
- getdata1();
|
|
|
- }
|
|
|
- });
|
|
|
- builder.setNegativeButton("取消", new DialogInterface.OnClickListener() {
|
|
|
- @Override
|
|
|
- public void onClick(DialogInterface dialog, int which)
|
|
|
- {
|
|
|
-
|
|
|
- }
|
|
|
- });
|
|
|
- builder.show();
|
|
|
-
|
|
|
- } else if (msg.equals("删除联系人")){
|
|
|
- Intent intent = new Intent(this,AddSiteActivity.class);
|
|
|
- startActivity(intent);
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- private void getdata1() {
|
|
|
-
|
|
|
- HashMap<String, String> params = new HashMap<>();
|
|
|
- params.put("siteid", "7");//id
|
|
|
- params.put("name", "liming");
|
|
|
- params.put("phone", "13124257879");
|
|
|
- JSONObject jsonObject = new JSONObject(params);
|
|
|
- String s = Data.getToken();
|
|
|
- Log.v("Tag",s);
|
|
|
- String str = jsonObject.toString();
|
|
|
-
|
|
|
- OkGo.post(ApiService.httpUrl+"addlinkman")
|
|
|
- .tag(this)
|
|
|
- .cacheKey("cachePostRegister11")
|
|
|
- .cacheMode(CacheMode.DEFAULT)
|
|
|
- .upJson(jsonObject.toString())
|
|
|
- .headers("token", Data.getToken())
|
|
|
- .execute(new StringCallback() {
|
|
|
- @Override
|
|
|
- public void onSuccess(String s, Call call, Response response) {
|
|
|
- SiteModel siteModel = new Gson().fromJson(s,SiteModel.class);
|
|
|
- String message = siteModel.getMsg();
|
|
|
- int code = siteModel.getCode();
|
|
|
- // LoginIn.tokenOut(code,message,getContext());
|
|
|
- if (message.equalsIgnoreCase("success")) {
|
|
|
- Toast.makeText(SitedetailActivity.this,"联系中人添加成功!"+s,Toast.LENGTH_SHORT).show();
|
|
|
- }else {
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void onError(Call call, Response response, Exception e) {
|
|
|
- super.onError(call, response, e);
|
|
|
- System.out.println("sss"+e);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
|
|
|
private void initWindows() {
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
|
|
@@ -303,98 +183,107 @@ public class SitedetailActivity extends AppCompatActivity {//implements View.OnC
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void getSite(){
|
|
|
- runOnUiThread(new Runnable() {
|
|
|
- @Override
|
|
|
- public void run() {
|
|
|
- String url = ApiService.httpUrl1 +Data.getConfigUrl()+ "/getSite?page=1&pagesize=11";
|
|
|
- OkGo.get(url)
|
|
|
- .tag(this) // 请求的 tag, 主要用于取消对应的请求
|
|
|
- .cacheKey("cacheGetKey") // 设置当前请求的缓存key,建议每个不同功能的请求设置一个
|
|
|
- .cacheMode(CacheMode.DEFAULT) // 缓存模式,详细请看缓存介绍
|
|
|
- .headers("token", Data.getToken())
|
|
|
- .execute(new StringCallback() {
|
|
|
- @Override
|
|
|
- public void onSuccess(String s, Call call, Response response) {
|
|
|
-
|
|
|
- SiteModel siteModel = new Gson().fromJson(s,SiteModel.class);
|
|
|
- String message = siteModel.getMsg();
|
|
|
- int code = siteModel.getCode();
|
|
|
- if (message.equalsIgnoreCase("success")) {
|
|
|
- final List<SiteModel.DataBean.DataListBean> listBeans = siteModel.getData().getDataList();
|
|
|
- for (int i = 0;i<listBeans.size();i++){
|
|
|
- isChoose = new IsChoose();
|
|
|
- HashMap<String,String> hashMap = new HashMap<>();
|
|
|
- String RegionName = listBeans.get(i).getRegionName();//区域
|
|
|
- String Location = listBeans.get(i).getLocation();//详细地址
|
|
|
- String id = listBeans.get(i).getId();//设备id
|
|
|
- String deployment = listBeans.get(i).getDeployment();//位置
|
|
|
- System.out.println("id:"+ id);
|
|
|
-
|
|
|
- hashMap.put("RegionName",RegionName);
|
|
|
- hashMap.put("Location",Location);
|
|
|
- hashMap.put("id",id);
|
|
|
- hashMap.put("deployment",deployment);
|
|
|
-
|
|
|
- listData.add(id);
|
|
|
- // listid.add(id);
|
|
|
- listIndex.add(-1);
|
|
|
- listmap.add(hashMap);
|
|
|
- arrayList.add(isChoose);
|
|
|
- }
|
|
|
- myAdapter1.notifyDataSetChanged();
|
|
|
- //设置分割线
|
|
|
-
|
|
|
- //RecyclerView点击事件
|
|
|
- myAdapter1.setOnItemClickLitener(new SitedetailMineAdapter.OnItemClickLitener() {
|
|
|
- private IsChoose e;
|
|
|
- @Override
|
|
|
- public void onItemClick(View view, int position) {
|
|
|
- //判断是否显示选择筐
|
|
|
- if (iSSHOW == 1) {
|
|
|
- //获取当前条目然后设置是否为选中,这里没有直接用boolean值判断
|
|
|
- e = arrayList.get(position);
|
|
|
-
|
|
|
- if (e.getIsSelect() == 1) {
|
|
|
- // e.setSelect(1);
|
|
|
- e.setIsSelect(0);
|
|
|
- listIndex.set(position,-1); //listIndex中移除取消删除的值
|
|
|
- deleteArrayList.remove(e);
|
|
|
- } else {
|
|
|
- e.setIsSelect(1);
|
|
|
- listIndex.set(position,position); //listIndex中加入要删除的值
|
|
|
- deleteArrayList.add(e);
|
|
|
- }
|
|
|
- myAdapter1.notifyDataSetChanged();
|
|
|
- } else {
|
|
|
- Data.setLinkmanname(listData.get(position));
|
|
|
- Intent intent = new Intent(SitedetailActivity.this,SiteManagement.class);
|
|
|
- Bundle bundle = new Bundle();
|
|
|
- bundle.putSerializable("listmap", listmap.get(position));
|
|
|
- intent.putExtras(bundle);
|
|
|
- startActivity(intent);
|
|
|
- }
|
|
|
- }
|
|
|
- @Override
|
|
|
- public void onItemLongClick(View view, final int position) {
|
|
|
- //这里长按定义的是删除
|
|
|
- }
|
|
|
- });
|
|
|
- }else {
|
|
|
- LoginIn.tokenOut(code,message,SitedetailActivity.this);
|
|
|
- }
|
|
|
- }
|
|
|
- @Override
|
|
|
- public void onError(Call call, Response response, Exception e) {
|
|
|
- super.onError(call, response, e);
|
|
|
- }
|
|
|
- });
|
|
|
+ @Override
|
|
|
+ public String getIds() {
|
|
|
+ return strId;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int getPage() {
|
|
|
+ return page;
|
|
|
+ }
|
|
|
|
|
|
+ @Override
|
|
|
+ public void onDelSuccess() {
|
|
|
+ for (int i = 0;i<listIndex.size();i++){ //不需要删除的删掉
|
|
|
+ if (listIndex.get(i) == -1){
|
|
|
+ listIndex.remove(i);
|
|
|
+ i--;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Collections.sort(listIndex); //对listIndex存的值排序
|
|
|
+ for(int i = 0; i<Data.getListSiteid().size(); i++){
|
|
|
+ listdata0.remove((int)listIndex.get(Data.getListSiteid().size()-i-1)); //尾删
|
|
|
+ }
|
|
|
+ Data.getListSiteid().clear();
|
|
|
+ Data.setList(listdata0); //上面可以直接Data.getList().remove()操作
|
|
|
+ listIndex.clear();
|
|
|
+ IsDeviceChange.setChangeSize(true); //判断设备页面场所列表要进行刷新
|
|
|
+ srlRefresh.autoRefresh();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onDelError() {
|
|
|
+ iSSHOW = 0;
|
|
|
+ deleteArrayList.clear();
|
|
|
+ srlRefresh.autoRefresh();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onGetSiteSuccess(SiteModel.DataBean data) {
|
|
|
+ for (int i = 0;i<data.getDataList().size();i++){
|
|
|
+ isChoose = new IsChoose();
|
|
|
+ HashMap<String,String> hashMap = new HashMap<>();
|
|
|
+ String RegionName = data.getDataList().get(i).getRegionName();//区域
|
|
|
+ String Location = data.getDataList().get(i).getLocation();//详细地址
|
|
|
+ String id = data.getDataList().get(i).getId();//设备id
|
|
|
+ String deployment = data.getDataList().get(i).getDeployment();//位置
|
|
|
+ System.out.println("id:"+ id);
|
|
|
+
|
|
|
+ hashMap.put("RegionName",RegionName);
|
|
|
+ hashMap.put("Location",Location);
|
|
|
+ hashMap.put("id",id);
|
|
|
+ hashMap.put("deployment",deployment);
|
|
|
+
|
|
|
+ listData.add(id);
|
|
|
+ // listid.add(id);
|
|
|
+ listIndex.add(-1);
|
|
|
+ listmap.add(hashMap);
|
|
|
+ arrayList.add(isChoose);
|
|
|
+ }
|
|
|
+ myAdapter1.notifyDataSetChanged();
|
|
|
+ //设置分割线
|
|
|
+
|
|
|
+ //RecyclerView点击事件
|
|
|
+ myAdapter1.setOnItemClickLitener(new SitedetailMineAdapter.OnItemClickLitener() {
|
|
|
+ private IsChoose e;
|
|
|
+ @Override
|
|
|
+ public void onItemClick(View view, int position) {
|
|
|
+ //判断是否显示选择筐
|
|
|
+ if (iSSHOW == 1) {
|
|
|
+ //获取当前条目然后设置是否为选中,这里没有直接用boolean值判断
|
|
|
+ e = arrayList.get(position);
|
|
|
+
|
|
|
+ if (e.getIsSelect() == 1) {
|
|
|
+ // e.setSelect(1);
|
|
|
+ e.setIsSelect(0);
|
|
|
+ listIndex.set(position,-1); //listIndex中移除取消删除的值
|
|
|
+ deleteArrayList.remove(e);
|
|
|
+ } else {
|
|
|
+ e.setIsSelect(1);
|
|
|
+ listIndex.set(position,position); //listIndex中加入要删除的值
|
|
|
+ deleteArrayList.add(e);
|
|
|
+ }
|
|
|
+ myAdapter1.notifyDataSetChanged();
|
|
|
+ } else {
|
|
|
+ Data.setLinkmanname(listData.get(position));
|
|
|
+ Intent intent = new Intent(SitedetailActivity.this,SiteManagement.class);
|
|
|
+ Bundle bundle = new Bundle();
|
|
|
+ bundle.putSerializable("listmap", listmap.get(position));
|
|
|
+ intent.putExtras(bundle);
|
|
|
+ startActivity(intent);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ @Override
|
|
|
+ public void onItemLongClick(View view, final int position) {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ srlRefresh.finishRefresh();
|
|
|
}
|
|
|
- public void myclick(View view) {
|
|
|
- finish();
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onFile(String msg) {
|
|
|
+ Toast.makeText(this,""+msg,Toast.LENGTH_SHORT).show();
|
|
|
}
|
|
|
}
|