| | |
| | | import android.content.pm.PackageManager; |
| | | import android.hardware.camera2.CameraManager; |
| | | import android.os.Bundle; |
| | | import android.util.Log; |
| | | import android.view.View; |
| | | |
| | | import androidx.annotation.NonNull; |
| | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 电站列表界面 |
| | | * (住宅)电站列表-界面 |
| | | */ |
| | | public class HouseListFragment extends CustomBaseFragment { |
| | | |
| | |
| | | @Override |
| | | public void onRefresh() { |
| | | updateUIData(true); |
| | | Log.d("HouseListFragment", "下拉刷新"); |
| | | HdlLogLogic.print("HouseListFragment", "下拉刷新"); |
| | | } |
| | | }); |
| | | houseInfoAdapter.setNoOnclickListener(new HouseInfoAdapter.OnclickListener() { |
| | |
| | | } |
| | | |
| | | private void initView() { |
| | | viewBinding.toolbarTopFragmentHouseListRl.topTitleTv.setText(R.string.my_power_station_我的电站); |
| | | viewBinding.toolbarTopFragmentHouseListRl.topTitleTv.setText(R.string.my_power_station); |
| | | viewBinding.toolbarTopFragmentHouseListRl.topMoreIv.setVisibility(View.VISIBLE); |
| | | viewBinding.toolbarTopFragmentHouseListRl.topMoreIv.setImageResource(R.drawable.add); |
| | | LinearLayoutManager linearLayout = new LinearLayoutManager(_mActivity); |
| | | houseInfoAdapter = new HouseInfoAdapter(this.houseListBeanIDList); |
| | | houseInfoAdapter = new HouseInfoAdapter(this.houseListBeanIDList,_mActivity); |
| | | viewBinding.fragmentHouseSrlListRc.setLayoutManager(linearLayout); |
| | | viewBinding.fragmentHouseSrlListRc.setAdapter(houseInfoAdapter); |
| | | |