DragSelectRecyclerView | TouchListener that can be | RecyclerView library

 by   MFlisar Java Version: 0.3 License: Apache-2.0

kandi X-RAY | DragSelectRecyclerView Summary

kandi X-RAY | DragSelectRecyclerView Summary

DragSelectRecyclerView is a Java library typically used in User Interface, RecyclerView applications. DragSelectRecyclerView has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.

It's a simple one class TouchListener that can be attached to any RecyclerView and handles multi selection in google photos style via long pressing on an item and moving the finger up/down to select more items (it even scrolls if you reach the edges of the RecyclerView).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              DragSelectRecyclerView has a low active ecosystem.
              It has 373 star(s) with 44 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 6 open issues and 4 have been closed. On average issues are closed in 7 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of DragSelectRecyclerView is 0.3

            kandi-Quality Quality

              DragSelectRecyclerView has 0 bugs and 34 code smells.

            kandi-Security Security

              DragSelectRecyclerView has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              DragSelectRecyclerView code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              DragSelectRecyclerView is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              DragSelectRecyclerView releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              DragSelectRecyclerView saves you 338 person hours of effort in developing the same functionality from scratch.
              It has 810 lines of code, 60 functions and 14 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed DragSelectRecyclerView and discovered the below as its top functions. This is intended to give you an instant insight into DragSelectRecyclerView implemented functionality, and help decide if they suit your requirements.
            • Handle touch event
            • Resets the state of this RecyclerView
            • Notify the current select range change
            • Process auto scroll
            • Initializes the RecyclerView
            • Start the drag selection
            • Set a listener for the selected items
            • Called when an options item is selected
            • Update selection listener
            • Sets the mode of the selection
            • Handle select change
            • Update the checked selection state
            • Intercept the touch event
            • Set selection start
            • Scroll by distance
            • Called when the selection is finished
            Get all kandi verified functions for this library.

            DragSelectRecyclerView Key Features

            No Key Features are available at this moment for DragSelectRecyclerView.

            DragSelectRecyclerView Examples and Code Snippets

            No Code Snippets are available at this moment for DragSelectRecyclerView.

            Community Discussions

            Trending Discussions on DragSelectRecyclerView

            QUESTION

            selectable RecyclerView performance issues
            Asked 2017-Nov-07 at 14:57

            I am currently trying to achieve an app to edit weekly timeframes. Like mechanical timers for sockets, but in my case for every weekday.

            The granularity is in the first place secondary (i guess it will be 15 or 30min).

            My approach was a RecyclerView with GridLayoutManager and an ArrayAdapter with Items for every Cell.

            To select more cells you can longpress a cell and drag over others. To achieve this I used the Listeners of the following Library DragSelectRecyclerView.

            It works pretty well and you can select the items quite good but especially on the emulator or older phones its very slow and laggy. In the debug logcat you can see also that the Choreographer has to skip many frames at rendering the View and on selection of multiple cells.

            Is there an better approach to achieve such an behavior. Or is there any big mistake in the code which is very slow and crappy?

            EDIT:

            after changing notifyItemChanged(pos); to notifyItemRangeChanged(pos, pos); its way less laggy but still not performing as well as it should.

            I also removed everything that was responsible for autoscrolling (which was a feature of the library i mentioned above) to make the code simpler.

            Here the source of my Fragment

            ...

            ANSWER

            Answered 2017-Nov-07 at 14:57

            I wouldn't use notifyItemRangeChanged(pos, pos);, notifyDataSetChanged() etc. on each selection process.

            Why won't you like this;

            1.Took your recyclerview references in its adapter like this:

            Source https://stackoverflow.com/questions/47016498

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install DragSelectRecyclerView

            You can download it from GitHub.
            You can use DragSelectRecyclerView like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the DragSelectRecyclerView component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/MFlisar/DragSelectRecyclerView.git

          • CLI

            gh repo clone MFlisar/DragSelectRecyclerView

          • sshUrl

            git@github.com:MFlisar/DragSelectRecyclerView.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link