Commit 82a3a464f6994e9c2d4f3daf3b463c0253eccc00
1 parent
59b733a3
1 修改赛事详情页卡片滑动触感
Showing
2 changed files
with
6 additions
and
6 deletions
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RunRaceDetailFragmentView.java
| ... | ... | @@ -188,7 +188,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { |
| 188 | 188 | if (fragment.binding.flTop.getVisibility() == View.VISIBLE) { |
| 189 | 189 | QMUIStatusBarHelper.setStatusBarLightMode(fragment.getActivity()); |
| 190 | 190 | StatusBarUtil2.setColor(fragment.getActivity(), getContext().getResources().getColor(R.color.white), 0); |
| 191 | - fragment.binding.flTop.setVisibility(View.GONE); | |
| 191 | + fragment.binding.flTop.setVisibility(View.INVISIBLE); | |
| 192 | 192 | } |
| 193 | 193 | } |
| 194 | 194 | //设置卡片缩放特效 |
| ... | ... | @@ -246,14 +246,14 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { |
| 246 | 246 | } else if (previousState == SlidingUpPanelLayout.PanelState.EXPANDED && newState == SlidingUpPanelLayout.PanelState.DRAGGING) { |
| 247 | 247 | QMUIStatusBarHelper.setStatusBarLightMode(fragment.getActivity()); |
| 248 | 248 | StatusBarUtil2.setColor(fragment.getActivity(), getContext().getResources().getColor(R.color.white), 0); |
| 249 | - if (fragment.binding.flTop.getVisibility() != View.GONE) { | |
| 250 | - fragment.binding.flTop.setVisibility(View.GONE); | |
| 249 | + if (fragment.binding.flTop.getVisibility() != View.INVISIBLE) { | |
| 250 | + fragment.binding.flTop.setVisibility(View.INVISIBLE); | |
| 251 | 251 | } |
| 252 | 252 | } else if (previousState == SlidingUpPanelLayout.PanelState.DRAGGING && newState == SlidingUpPanelLayout.PanelState.ANCHORED) { |
| 253 | 253 | QMUIStatusBarHelper.setStatusBarLightMode(fragment.getActivity()); |
| 254 | 254 | StatusBarUtil2.setColor(fragment.getActivity(), getContext().getResources().getColor(R.color.white), 0); |
| 255 | - if (fragment.binding.flTop.getVisibility() != View.GONE) { | |
| 256 | - fragment.binding.flTop.setVisibility(View.GONE); | |
| 255 | + if (fragment.binding.flTop.getVisibility() != View.INVISIBLE) { | |
| 256 | + fragment.binding.flTop.setVisibility(View.INVISIBLE); | |
| 257 | 257 | } |
| 258 | 258 | } |
| 259 | 259 | //设置地图缩放 | ... | ... |
moudle_pedometer/src/main/res/layout/fragment_run_race_detail.xml