Sliding layout below status bar in Umano SlidingPanel

后端 未结 3 1101
囚心锁ツ
囚心锁ツ 2021-01-21 09:01

I have implemented UmanoSlidingPanel using https://github.com/umano/AndroidSlidingUpPanel . Everything is working fine except that my sliding panel when expanded, the sliding co

3条回答
  •  不知归路
    2021-01-21 09:46

    Try android:fitsSystemWindows="true" in the parent layout. That should fix your problem.

    Another solution I have implemented in the past is, in the activity that contains the slidingUpPanel, you can style it with a translucent status bar (API >= 19):

    true

    And then in onPanelSlide callback, you can modify the padding of your slidingUpPanel adding progressively until the panel is fully up. In that moment the amount of added extra padding should be the status bar dimensions.

提交回复
热议问题