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

Change view properties in the BehindSwipedItemLayout #66

Closed
tamirAjicreative opened this issue Jul 26, 2021 · 1 comment
Closed

Change view properties in the BehindSwipedItemLayout #66

tamirAjicreative opened this issue Jul 26, 2021 · 1 comment
Labels
invalid This doesn't seem right

Comments

@tamirAjicreative
Copy link

tamirAjicreative commented Jul 26, 2021

Hi, first thank you for the wonderful lib

My question, is that any way to manipulate BehindSwipedItemLayout, for exemple i want to show and hide a progressBar onItemSwiped

    private val onItemSwipeListener = object : OnItemSwipeListener<MyItem> {
        override fun onItemSwiped(position: Int, direction: OnItemSwipeListener.SwipeDirection, item: MyItem): Boolean {
                // Show loading view
                Handler(Looper.getMainLooper()).postDelayed({
                    dataSet[position].status = "3"
                    Log.v("status : ", "3")
                    mAdapter.notifyItemChanged(position)
                    Log.v("delay : ", "2 Sec")
                }, 2000)
                // Hide loading view
                return true
        }
    }

Thank you!

@ernestoyaquello ernestoyaquello added the invalid This doesn't seem right label Jan 15, 2022
@ernestoyaquello
Copy link
Owner

ernestoyaquello commented Jan 15, 2022

Sorry, but I am not sure what it is that you are trying to do, and I don't think it has to do with this library, but with your specific implementation, so I will close the issue for now. Feel free to reply explaining your use case/problem and I will reopen the issue if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants