Search in sources :

Example 16 with CutCornerTreatment

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

the class Toolbar 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 17 with CutCornerTreatment

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

the class FlowLayout 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 18 with CutCornerTreatment

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

the class DrawerLayout 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 19 with CutCornerTreatment

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

the class Button 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