react-native-navigation的迁移库

CollapsingViewPagerContentViewMeasurer.java 594B

1234567891011121314151617
  1. package com.reactnativenavigation.views.collapsingToolbar;
  2. import com.reactnativenavigation.params.StyleParams;
  3. import com.reactnativenavigation.screens.Screen;
  4. public class CollapsingViewPagerContentViewMeasurer extends CollapsingViewMeasurer {
  5. public CollapsingViewPagerContentViewMeasurer(CollapsingTopBar topBar, Screen screen, StyleParams styleParams) {
  6. super(topBar, screen, styleParams);
  7. }
  8. @Override
  9. public int getMeasuredHeight(int heightMeasureSpec) {
  10. return screenHeight - collapsedTopBarHeight - (bottomTabsHidden ? 0 : bottomTabsHeight);
  11. }
  12. }