| | |
| | | import androidx.recyclerview.widget.RecyclerView; |
| | | import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; |
| | | |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.JsonObject; |
| | | import com.hdl.linkpm.sdk.core.exception.HDLException; |
| | | import com.hdl.photovoltaic.R; |
| | |
| | | viewBinding.allGradeTitleIv.setBackgroundResource(R.drawable.down); |
| | | viewBinding.allTimeTitleIv.setBackgroundResource(R.drawable.down); |
| | | List<String> stringList = getTypeList(FilterType.deviceType); |
| | | TypeTitleListDialog typeTitleListDialog = new TypeTitleListDialog(_mActivity, stringList); |
| | | TypeTitleListDialog typeTitleListDialog = new TypeTitleListDialog(_mActivity, stringList, viewBinding.allDeviceTitleTv.getText().toString()); |
| | | typeTitleListDialog.show(); |
| | | typeTitleListDialog.setOnListener(new TypeTitleListDialog.OnClickListener() { |
| | | @Override |
| | |
| | | viewBinding.allGradeTitleIv.setBackgroundResource(R.drawable.up); |
| | | viewBinding.allTimeTitleIv.setBackgroundResource(R.drawable.down); |
| | | List<String> stringList = getTypeList(FilterType.type); |
| | | TypeTitleListDialog typeTitleListDialog = new TypeTitleListDialog(_mActivity, stringList); |
| | | TypeTitleListDialog typeTitleListDialog = new TypeTitleListDialog(_mActivity, stringList, viewBinding.allGradeTitleTv.getText().toString()); |
| | | typeTitleListDialog.show(); |
| | | typeTitleListDialog.setOnListener(new TypeTitleListDialog.OnClickListener() { |
| | | @Override |
| | |
| | | viewBinding.allGradeTitleIv.setBackgroundResource(R.drawable.down); |
| | | viewBinding.allTimeTitleIv.setBackgroundResource(R.drawable.up); |
| | | List<String> stringList = getTypeList(FilterType.timeType); |
| | | TypeTitleListDialog typeTitleListDialog = new TypeTitleListDialog(_mActivity, stringList); |
| | | TypeTitleListDialog typeTitleListDialog = new TypeTitleListDialog(_mActivity, stringList, viewBinding.allTimeTitleTv.getText().toString()); |
| | | typeTitleListDialog.show(); |
| | | typeTitleListDialog.setOnListener(new TypeTitleListDialog.OnClickListener() { |
| | | @Override |
| | |
| | | @Override |
| | | public void onClick(int position, MessageBean messageBean) { |
| | | Intent intent = new Intent(); |
| | | intent.putExtra("msgId", messageBean.getMsgId().toString()); |
| | | intent.putExtra("messageBean", new Gson().toJson(messageBean)); |
| | | intent.setClass(_mActivity, MessageInfoActivity.class); |
| | | startActivity(intent); |
| | | } |