DragGridView | 可拖拽item来交换位置的GridView

 by   yuqirong Java Version: Current License: Apache-2.0

kandi X-RAY | DragGridView Summary

kandi X-RAY | DragGridView Summary

DragGridView is a Java library. DragGridView 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.

##介绍 Introduction## DragGridView - 可拖拽item来交换位置的GridView。(The GridView can drag items to exchange their positions.). ##用法 Usage## ###step 1### 把DragGridView控件添加到你的布局xml中。(Include the DragGridView widget in your layout. ). ###step 2### 在 onCreate(Bundle savedInstanceState) 里获取相应的DragGridView对象,并设置Adapter,该Adapter必须继承自DragGridAdapter。(You can get the DragGridView object in onCreate(Bundle savedInstanceState) , and set the adapter.The adapter must be extends DragGridAdapter). PS:该DragGridView内部实际是应用了WindowManager,所以需要去除标题栏,以避免计算y轴距离不准确。如果你的MainActivity继承自Activity,则需要加上requestWindowFeature(Window.FEATURE_NO_TITLE);;或者继承自AppCompatActivity,需要getSupportActionBar().hide();。另外如果你的应用一定需要标题栏的存在,那么需要额外加上标题栏的高度。(The interior is practical DragGridView applied WindowManager, so it is necessary to remove the title bar, in order to avoid calculating the y-axis distance is not accurate. If you MainActivity extends Activity, you need to add requestWindowFeature (Window.FEATURE_NO_TITLE);; or extends AppCompatActivity, need getSupportActionBar().hide();. Also, if your application must require the presence of the title bar, you need to add extra height of the title bar.). ###step 3### 增加显示悬浮窗的权限。(add SYSTEM_ALERT_WINDOW user permission.). ##致谢 Thanks## Inspired by. ##联系方式 Contact Me## 新浪微博 Sina Weibo:@活得好像一条狗. If you have any questions or want to contact me,you can also leave a message in Issues.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              DragGridView has a low active ecosystem.
              It has 41 star(s) with 9 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 2 open issues and 2 have been closed. On average issues are closed in 8 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of DragGridView is current.

            kandi-Quality Quality

              DragGridView has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              DragGridView 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

              DragGridView releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              DragGridView saves you 183 person hours of effort in developing the same functionality from scratch.
              It has 451 lines of code, 25 functions and 15 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed DragGridView and discovered the below as its top functions. This is intended to give you an instant insight into DragGridView implemented functionality, and help decide if they suit your requirements.
            • Override handleTouchEvents
            • Handle item move
            • Update window
            • Change item
            • Close a window
            • Drop item drop
            • On item view
            • Initialize window
            • Create the grid view
            • Override to handle touch events
            • Get the view at the specified position
            • Override this to override the default behavior of scaleMeasure
            • Returns the number of elements in the list
            • Gets the item at a specific position
            Get all kandi verified functions for this library.

            DragGridView Key Features

            No Key Features are available at this moment for DragGridView.

            DragGridView Examples and Code Snippets

            No Code Snippets are available at this moment for DragGridView.

            Community Discussions

            No Community Discussions are available at this moment for DragGridView.Refer to stack overflow page for discussions.

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

            Vulnerabilities

            No vulnerabilities reported

            Install DragGridView

            You can download it from GitHub.
            You can use DragGridView 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 DragGridView 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/yuqirong/DragGridView.git

          • CLI

            gh repo clone yuqirong/DragGridView

          • sshUrl

            git@github.com:yuqirong/DragGridView.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

            Consider Popular Java Libraries

            CS-Notes

            by CyC2018

            JavaGuide

            by Snailclimb

            LeetCodeAnimation

            by MisterBooo

            spring-boot

            by spring-projects

            Try Top Libraries by yuqirong

            CardSwipeLayout

            by yuqirongJava

            FlexibleSearchBar

            by yuqirongJava

            SwipeListView

            by yuqirongJava

            NewsPublish

            by yuqirongJavaScript

            Koku

            by yuqirongJava