Android Tabbed活动片段高度不同

问题描述

嗨,我的选项卡活动中的片段行为异常,所有片段占据了我打开的第一个片段的高度,这是我第一次打开它时的片段高度https://i.stack.imgur.com/tk0Co.jpg 如果我打开这个片段 https://i.stack.imgur.com/ypewT.jpg 然后第一个片段大小减小到

enter image description here

而且我无法正确滚动

这是我的代码在这里

 saveSessionDuration$ = createEffect(() =>
    this.actions$.pipe(
      ofType("SAVE_SESSION_DURATION"),withLatestFrom(
        this.store$.select(selectSessionStartTime),this.store$.select(selectSessionEndTime)
      ),switchMap(([startTime,endTime]) =>
        this.dbService
          .saveSessionDuration(endTime - startTime)
          .pipe(map(() => ({ type: "SAVE_SESSION_DURATION_SUCCEEDED" })))
      // Todo handle errors
      )
    )
  );

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)