| | |
| | | import com.hdl.photovoltaic.databinding.FragmentHouseListBinding; |
| | | import com.hdl.photovoltaic.base.CustomBaseFragment; |
| | | import com.hdl.photovoltaic.ui.adapter.HouseInfoAdapter; |
| | | import com.hdl.photovoltaic.ui.bean.HouseInfoBean; |
| | | import com.hdl.photovoltaic.ui.bean.HouseListBean; |
| | | import com.hdl.photovoltaic.ui.device.FastScanActivity; |
| | | import com.hdl.photovoltaic.utils.FlashLightUtils; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | |
| | | private HouseInfoAdapter houseInfoAdapter; |
| | | private CameraManager manager; |
| | | |
| | | private List<HouseInfoBean> houseInfoBeanList = null; |
| | | private List<HouseListBean> houseListBeanList = null; |
| | | |
| | | @Override |
| | | public Object getContentView() { |
| | |
| | | viewBinding.toolbarTopFragmentHouseListRl.topMoreIv.setVisibility(View.VISIBLE); |
| | | viewBinding.toolbarTopFragmentHouseListRl.topMoreIv.setImageResource(R.drawable.add); |
| | | LinearLayoutManager linearLayout = new LinearLayoutManager(_mActivity); |
| | | houseInfoAdapter = new HouseInfoAdapter(this.houseInfoBeanList); |
| | | houseInfoAdapter = new HouseInfoAdapter(this.houseListBeanList); |
| | | viewBinding.fragmentHouseSrlListRc.setLayoutManager(linearLayout); |
| | | viewBinding.fragmentHouseSrlListRc.setAdapter(houseInfoAdapter); |
| | | |
| | |
| | | } |
| | | |
| | | private void initData() { |
| | | this.houseInfoBeanList = new ArrayList<>(); |
| | | this.houseListBeanList = new ArrayList<>(); |
| | | for (int i = 0; i < 11; i++) { |
| | | HouseInfoBean houseInfoBean = new HouseInfoBean(); |
| | | houseInfoBean.setName("电站" + i); |
| | | this.houseInfoBeanList.add(houseInfoBean); |
| | | HouseListBean houseListBean = new HouseListBean(); |
| | | houseListBean.setHomeName("电站" + i); |
| | | this.houseListBeanList.add(houseListBean); |
| | | } |
| | | |
| | | |