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

Improvement for CircularFlow #139

Merged

Conversation

rodrigomartind
Copy link
Contributor

@rodrigomartind rodrigomartind commented Feb 22, 2021

Improvement for CircularFlow

I add new features for CircularFlow.

How update angle from a view in CircularFlow?

With method updateAngle you will can update angles from views in CircularFlow.

     /**
     * Update angle from a view in CircularFlow. The referenced view need to be a child of the container parent.
     * The view also need to have its id set in order to be added.
     * @param view
     * @param angle
     * @return
     */

Eg.

findViewById<View>(R.id.view2).setOnClickListener {
            findViewById<CircularFlow>(R.id.circularFlow).updateAngle(
                it, 90F
            )
        }

ezgif com-video-to-gif


How update radius from a view in CircularFlow?

With method updateRadius you will can update angles from views in CircularFlow.

    /**
     * Update radius from a view in CircularFlow. The referenced view need to be a child of the container parent.
     * The view also need to have its id set in order to be added.
     * @param view
     * @param radius
     * @return
     */

Eg.

findViewById<View>(R.id.view3).setOnClickListener {
            findViewById<CircularFlow>(R.id.circularFlow).updateRadius(
                it, 150
            )
        }

ezgif com-video-to-gif (19)


How update angle and radius from a view in CircularFlow?

With method updateReference you will can update angles from views in CircularFlow.

    /**
     * Update angle and radius from a view in CircularFlow. The referenced view need to be a child of the container parent.
     * The view also need to have its id set in order to be added.
     * @param view
     * @param radius
     * @param angle
     * @return

Eg.

findViewById<View>(R.id.view4).setOnClickListener {
            findViewById<CircularFlow>(R.id.circularFlow).updateReference(
                it, 160, 135F
            )
        }

ezgif com-video-to-gif (21)

@google-cla
Copy link

google-cla bot commented Feb 22, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@rodrigomartindMeli
Copy link
Contributor

@googlebot I consent

@camaelon camaelon merged commit 72bad9e into androidx:main Feb 23, 2021
oscar-ad pushed a commit to oscar-ad/constraintlayout that referenced this pull request Mar 11, 2021
* Improvement for CircularFlow

* example removeView

Co-authored-by: Rodrigo Martin <rodrigo.dominguez@mercadolibre.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants