ConstraintLayout.ValueModifier


public interface ConstraintLayout.ValueModifier


This is the interface to a valued modifier. implement this and add it using addValueModifier

Summary

Public methods

abstract boolean
update(
    int width,
    int height,
    int id,
    View view,
    ConstraintLayout.LayoutParams params
)

if needed in the implementation modify params and return true

Public methods

update

Added in 2.2.0-rc01
abstract boolean update(
    int width,
    int height,
    int id,
    View view,
    ConstraintLayout.LayoutParams params
)

if needed in the implementation modify params and return true

Parameters
int width

of the ConstraintLayout in pixels

int height

of the ConstraintLayout in pixels

int id

The id of the view which

View view

The View

ConstraintLayout.LayoutParams params

The layout params of the view

Returns
boolean

true if you modified the layout params