Search in sources :

Example 6 with CutCornerTreatment

use of com.google.android.material.shape.CutCornerTreatment in project Carbon by ZieIony.

the class FrameLayout method setCornerCut.

@Override
public void setCornerCut(float cornerCut) {
    shapeModel = ShapeAppearanceModel.builder().setAllCorners(new CutCornerTreatment(cornerCut)).build();
    setShapeModel(shapeModel);
}
Also used : CutCornerTreatment(com.google.android.material.shape.CutCornerTreatment)

Example 7 with CutCornerTreatment

use of com.google.android.material.shape.CutCornerTreatment in project Carbon by ZieIony.

the class GridLayout method setCornerCut.

@Override
public void setCornerCut(float cornerCut) {
    shapeModel = ShapeAppearanceModel.builder().setAllCorners(new CutCornerTreatment(cornerCut)).build();
    setShapeModel(shapeModel);
}
Also used : CutCornerTreatment(com.google.android.material.shape.CutCornerTreatment)

Example 8 with CutCornerTreatment

use of com.google.android.material.shape.CutCornerTreatment in project Carbon by ZieIony.

the class ImageView method setCornerCut.

@Override
public void setCornerCut(float cornerCut) {
    shapeModel = ShapeAppearanceModel.builder().setAllCorners(new CutCornerTreatment(cornerCut)).build();
    setShapeModel(shapeModel);
}
Also used : CutCornerTreatment(com.google.android.material.shape.CutCornerTreatment)

Example 9 with CutCornerTreatment

use of com.google.android.material.shape.CutCornerTreatment in project Carbon by ZieIony.

the class MotionLayout method setCornerCut.

@Override
public void setCornerCut(float cornerCut) {
    shapeModel = ShapeAppearanceModel.builder().setAllCorners(new CutCornerTreatment(cornerCut)).build();
    setShapeModel(shapeModel);
}
Also used : CutCornerTreatment(com.google.android.material.shape.CutCornerTreatment)

Example 10 with CutCornerTreatment

use of com.google.android.material.shape.CutCornerTreatment in project Carbon by ZieIony.

the class TextView method setCornerCut.

@Override
public void setCornerCut(float cornerCut) {
    shapeModel = ShapeAppearanceModel.builder().setAllCorners(new CutCornerTreatment(cornerCut)).build();
    setShapeModel(shapeModel);
}
Also used : CutCornerTreatment(com.google.android.material.shape.CutCornerTreatment)

Aggregations

CutCornerTreatment (com.google.android.material.shape.CutCornerTreatment)19 RoundedCornerTreatment (com.google.android.material.shape.RoundedCornerTreatment)1 ShapeAppearanceModel (com.google.android.material.shape.ShapeAppearanceModel)1