| | |
| | | import androidx.lifecycle.Lifecycle; |
| | | |
| | | import com.hdl.photovoltaic.R; |
| | | import com.hdl.photovoltaic.bean.BaseEventBus; |
| | | import com.hdl.photovoltaic.listener.BaseView; |
| | | import com.hdl.photovoltaic.other.HdlThreadLogic; |
| | | import com.hdl.photovoltaic.widget.LoadingDialog; |
| | | import com.hdl.sdk.link.core.bean.eventbus.BaseEventBus; |
| | | |
| | | |
| | | import org.greenrobot.eventbus.EventBus; |
| | |
| | | view = inflater.inflate((int) getContentView(), container, false); |
| | | } else if (getContentView() instanceof View) { |
| | | view = (View) getContentView(); |
| | | FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); |
| | | ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); |
| | | view.setLayoutParams(layoutParams); |
| | | } else { |
| | | view = null; |
| | |
| | | @Override |
| | | public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { |
| | | super.onViewCreated(view, savedInstanceState); |
| | | view.setClickable(true); |
| | | view.postDelayed(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | |
| | | * 开始Loading |
| | | */ |
| | | protected void showLoading() { |
| | | getLoadingDialog().setText(""); |
| | | getLoadingDialog().start(); |
| | | } |
| | | |