kandi background
Explore Kits

android-slide-down-view | Android Slide Down View | Android library

 by   loeschg Java Version: Current License: No License

 by   loeschg Java Version: Current License: No License

Download this library from

kandi X-RAY | android-slide-down-view Summary

android-slide-down-view is a Java library typically used in Mobile, Android applications.,roid-slide-down-view has no bugs, it has no vulnerabilities and it has low support. However android-slide-down-view build file is not available. You can download it from GitHub.
This is a proof-of-concept project that demonstrates how to create a view element that can be hidden/shown by tapping and dragging up and down on a handle, similar to the Android notification bar. The view is composed of two main elements.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • android-slide-down-view has a low active ecosystem.
  • It has 11 star(s) with 7 fork(s). There are 3 watchers for this library.
  • It had no major release in the last 12 months.
  • android-slide-down-view has no issues reported. There are no pull requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of android-slide-down-view is current.
This Library - Support
Best in #Android
Average in #Android
This Library - Support
Best in #Android
Average in #Android

quality kandi Quality

  • android-slide-down-view has 0 bugs and 0 code smells.
This Library - Quality
Best in #Android
Average in #Android
This Library - Quality
Best in #Android
Average in #Android

securitySecurity

  • android-slide-down-view has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • android-slide-down-view code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
This Library - Security
Best in #Android
Average in #Android
This Library - Security
Best in #Android
Average in #Android

license License

  • android-slide-down-view does not have a standard license declared.
  • Check the repository for any license declaration and review the terms closely.
  • Without a license, all rights are reserved, and you cannot use the library in your applications.
This Library - License
Best in #Android
Average in #Android
This Library - License
Best in #Android
Average in #Android

buildReuse

  • android-slide-down-view releases are not available. You will need to build from source code and install.
  • android-slide-down-view has no build file. You will be need to create the build yourself to build the component from source.
This Library - Reuse
Best in #Android
Average in #Android
This Library - Reuse
Best in #Android
Average in #Android
Top functions reviewed by kandi - BETA

kandi has reviewed android-slide-down-view and discovered the below as its top functions. This is intended to give you an instant insight into android-slide-down-view implemented functionality, and help decide if they suit your requirements.

  • Set the OnTouchListener .
    • Initializes the view .
      • Evaluate the view height

        Get all kandi verified functions for this library.

        Get all kandi verified functions for this library.

        android-slide-down-view Key Features

        A content container (where you would actually place content)

        A handle that is used to hide/reveal the content container

        Community Discussions

        Trending Discussions on android-slide-down-view
        • Android move slide down to slide up view
        Trending Discussions on android-slide-down-view

        QUESTION

        Android move slide down to slide up view

        Asked 2017-Dec-05 at 16:24

        I'm using this library to use slide down menu, the problem is when I want to move the handle from top to bottom and want to change from slide down to slide up, I try to change the variable but can't make it right

        This is the original code

        /* User tapped down on screen. */
                            case MotionEvent.ACTION_DOWN:
                                // User has tapped the screen
                                yStart = event.getRawY();
                                lastY = event.getRawY();
                                currentHeight = slideDownView.getHeight();
                                break;
        
                            /* User is dragging finger. */
                            case MotionEvent.ACTION_MOVE:
        
                                // Calculate the total height change thus far.
                                float totalHeightDiff = event.getRawY() - yStart;
        
                                // Adjust the slide down height immediately with touch movements.
                                LayoutParams params = slideDownView.getLayoutParams();
                                params.height = (int)(currentHeight + totalHeightDiff);
                                slideDownView.setLayoutParams(params);
        
                                // Check and set which direction drag is moving.
                                if (event.getRawY() > lastY) {
                                    directionDown = true;
                                } else {
                                    directionDown = false;
                                }
        
                                // Set the lastY for comparison in the next ACTION_MOVE event.
                                lastY = event.getRawY();
                                break;
        
                            /* User lifted up finger. */
                            case MotionEvent.ACTION_CANCEL:
                            case MotionEvent.ACTION_UP:
        
                                /*
                                 * Need to snap either up or down. Using ValueAnimator to "finish" the action. 
                                 * HeightEvaluator is a custom class. 
                                 * 
                                 * NOTE: I'm using the nineoldandroids library for 
                                 */
                                if (directionDown) {
        
                                    // Open the sliding view.
                                    int startHeight = slideDownView.getHeight(); 
        
                                    ValueAnimator animation = ValueAnimator.ofObject(
                                            new HeightEvaluator(slideDownView),
                                            startHeight, 
                                            (int) openHeight).setDuration(300);
        
                                    // See Table 3 for other interpolator options 
                                    // - http://developer.android.com/guide/topics/graphics/prop-animation.html
                                    animation.setInterpolator(new OvershootInterpolator(1));
                                    animation.start();
        
                                } else {
        
                                    // Close the sliding view.
                                    int startHeight = slideDownView.getHeight(); 
                                    ValueAnimator animation = ValueAnimator.ofObject(
                                            new HeightEvaluator(slideDownView),
                                            startHeight, 
                                            (int) closedHeight).setDuration(300);
                                    animation.setInterpolator(new OvershootInterpolator(1));
                                    animation.start();
                                }
                                break;
        

        How to make it reverse ? so I can slide up from bottom to top ? is it have to change also in HeightEvaluator.java ?

        ANSWER

        Answered 2017-Dec-05 at 16:24

        At the end I use BottomSheet and set PeekHeight to make a slideUp with button at the bottom that still visible to trigger the slideView

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

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

        Vulnerabilities

        No vulnerabilities reported

        Install android-slide-down-view

        You can download it from GitHub.
        You can use android-slide-down-view 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 android-slide-down-view 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 .

        DOWNLOAD this Library from

        Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
        over 430 million Knowledge Items
        Find more libraries
        Reuse Solution Kits and Libraries Curated by Popular Use Cases
        Explore Kits

        Save this library and start creating your kit

        Explore Related Topics

        Share this Page

        share link
        Consider Popular Android Libraries
        Try Top Libraries by loeschg
        Compare Android Libraries with Highest Support
        Compare Android Libraries with Highest Quality
        Compare Android Libraries with Highest Security
        Compare Android Libraries with Permissive License
        Compare Android Libraries with Highest Reuse
        Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
        over 430 million Knowledge Items
        Find more libraries
        Reuse Solution Kits and Libraries Curated by Popular Use Cases
        Explore Kits

        Save this library and start creating your kit

        • © 2022 Open Weaver Inc.