From 1078968985ae81e79ea149e3251841cd9bd54a1e Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期四, 11 四月 2024 15:24:20 +0800 Subject: [PATCH] Merge branch 'wxw_new' into dev-hxb --- app/src/main/java/com/hdl/photovoltaic/base/BaseFragment.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/app/src/main/java/com/hdl/photovoltaic/base/BaseFragment.java b/app/src/main/java/com/hdl/photovoltaic/base/BaseFragment.java index 8aa49e0..d7c42b3 100644 --- a/app/src/main/java/com/hdl/photovoltaic/base/BaseFragment.java +++ b/app/src/main/java/com/hdl/photovoltaic/base/BaseFragment.java @@ -49,7 +49,7 @@ 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; @@ -61,6 +61,7 @@ @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() { -- Gitblit v1.8.0