Skip to content

Swipe down on the app drawer do not dismiss it ? #789

Closed Locked Answered by CreativeCodeCat
Npa972 asked this question in Q&A
Discussion options

You must be logged in to vote

Oh sorry I removed a bit of code when I added the A-Z scroll bar ill add it back soon...

override fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int) {
    super.onScrollStateChanged(recyclerView, newState)
    when (newState) {

        RecyclerView.SCROLL_STATE_DRAGGING -> {
            onTop = !recyclerView.canScrollVertically(-1)
            if (onTop) {
                if (requireContext().hasSoftKeyboard()) {
                    binding.search.hideKeyboard()
                }
            }
            if (onTop && !recyclerView.canScrollVertically(1)) {
                findNavController().popBackStack()
            }
        }

        RecyclerView.SCROLL_STATE_IDLE ->

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Npa972
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by CreativeCodeCat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants