| | |
| | | import com.hdl.photovoltaic.base.BaseDialog; |
| | | import com.hdl.photovoltaic.databinding.DialogDefaultFilteringBinding; |
| | | import com.hdl.photovoltaic.enums.GridType; |
| | | import com.hdl.photovoltaic.enums.UnitType; |
| | | import com.hdl.photovoltaic.other.HdlCommonLogic; |
| | | import com.hdl.photovoltaic.other.HdlDeviceLogic; |
| | | import com.hdl.photovoltaic.other.HdlThreadLogic; |
| | | |
| | | public class DefaultFilteringDialog extends BaseDialog { |
| | |
| | | } |
| | | }); |
| | | |
| | | viewBinding.resetTv.setOnClickListener(new View.OnClickListener() { |
| | | viewBinding.resetRl.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | setBackgroundColor(null, TitleType.string_capacity); |
| | | setSelectedText(""); |
| | | setBackgroundColor(viewBinding.allTv, TitleType.GridConnectedState); |
| | | mStateValue = GridType.All; |
| | | } |
| | | }); |
| | | viewBinding.text1Tv.setOnClickListener(new View.OnClickListener() { |
| | |
| | | |
| | | private void initView() { |
| | | |
| | | String s = mContext.getString(R.string.string_capacity) + "(" + UnitType.kWp + ")"; |
| | | viewBinding.capacityTv.setText(s); |
| | | viewBinding.text1Tv.setTag(text1); |
| | | viewBinding.text2Tv.setTag(text2); |
| | | viewBinding.text3Tv.setTag(text3); |