BottomSheetDialog background blinking

前端 未结 3 681
日久生厌
日久生厌 2021-02-01 05:34

BottomSheetDialog\'s background is blinking when switching between apps. What am I doing wrong ?

MainActivity.java

public class MainActi         


        
3条回答
  •  既然无缘
    2021-02-01 05:42

    According to documentation the setPeekHeight method is responsible for the pop up behavior. Using the

    bottomSheet.setState(STATE_HIDDEN) should do the trick.
    

提交回复
热议问题