Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤯需求池 #11

Open
3 tasks
goweii opened this issue Oct 25, 2022 · 3 comments
Open
3 tasks

🤯需求池 #11

goweii opened this issue Oct 25, 2022 · 3 comments

Comments

@goweii
Copy link
Owner

goweii commented Oct 25, 2022

  • 支持ViewBinding
  • Overlay支持投掷动画
  • Overlay支持pin模式和记忆拖拽位置
@goweii goweii pinned this issue Oct 25, 2022
@x930073498
Copy link

overlayer 可否pin住,不让拖拽,是否可以记住拖拽的位置?

@guangxingmao
Copy link

bottom sheet 的时候可以设置navigationBarColor 吗

@goweii
Copy link
Owner Author

goweii commented Oct 26, 2023

bottom sheet 的时候可以设置navigationBarColor 吗

@guangxingmao 你可以复写fitDecorInsets方法,让navigationbar的高度显示在自己的布局里面。

object : DialogLayer(this) {
    override fun fitDecorInsets(insets: Rect) {
        // 移除原有的边距设置
        // super.fitDecorInsets(insets)
        // 设置边距到自己的根布局
        viewHolder.content.setPadding(0, 0, 0, insets.bottom)
    }
}
    .contentView(R.layout.bottom_sheet)
    .gravity(Gravity.BOTTOM)
    .swipeDismiss(SwipeLayout.Direction.BOTTOM)
    .backgroundDimDefault()
    .animStyle(AnimStyle.BOTTOM)
    .onClickToDismiss(R.id.bottom_sheet_fl_close)
    .show()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants