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,7 +188,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { | ||
| 188 | if (fragment.binding.flTop.getVisibility() == View.VISIBLE) { | 188 | if (fragment.binding.flTop.getVisibility() == View.VISIBLE) { |
| 189 | QMUIStatusBarHelper.setStatusBarLightMode(fragment.getActivity()); | 189 | QMUIStatusBarHelper.setStatusBarLightMode(fragment.getActivity()); |
| 190 | StatusBarUtil2.setColor(fragment.getActivity(), getContext().getResources().getColor(R.color.white), 0); | 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,14 +246,14 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { | ||
| 246 | } else if (previousState == SlidingUpPanelLayout.PanelState.EXPANDED && newState == SlidingUpPanelLayout.PanelState.DRAGGING) { | 246 | } else if (previousState == SlidingUpPanelLayout.PanelState.EXPANDED && newState == SlidingUpPanelLayout.PanelState.DRAGGING) { |
| 247 | QMUIStatusBarHelper.setStatusBarLightMode(fragment.getActivity()); | 247 | QMUIStatusBarHelper.setStatusBarLightMode(fragment.getActivity()); |
| 248 | StatusBarUtil2.setColor(fragment.getActivity(), getContext().getResources().getColor(R.color.white), 0); | 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 | } else if (previousState == SlidingUpPanelLayout.PanelState.DRAGGING && newState == SlidingUpPanelLayout.PanelState.ANCHORED) { | 252 | } else if (previousState == SlidingUpPanelLayout.PanelState.DRAGGING && newState == SlidingUpPanelLayout.PanelState.ANCHORED) { |
| 253 | QMUIStatusBarHelper.setStatusBarLightMode(fragment.getActivity()); | 253 | QMUIStatusBarHelper.setStatusBarLightMode(fragment.getActivity()); |
| 254 | StatusBarUtil2.setColor(fragment.getActivity(), getContext().getResources().getColor(R.color.white), 0); | 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
| @@ -151,7 +151,7 @@ | @@ -151,7 +151,7 @@ | ||
| 151 | android:layout_gravity="top" | 151 | android:layout_gravity="top" |
| 152 | android:background="@color/run_main_bg" | 152 | android:background="@color/run_main_bg" |
| 153 | android:gravity="center" | 153 | android:gravity="center" |
| 154 | - android:visibility="gone"> | 154 | + android:visibility="invisible"> |
| 155 | 155 | ||
| 156 | <LinearLayout | 156 | <LinearLayout |
| 157 | android:id="@+id/ll_top_back" | 157 | android:id="@+id/ll_top_back" |