Search in sources :

Example 11 with CutCornerTreatment

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

the class CollapsingToolbarLayout 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 12 with CutCornerTreatment

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

the class RelativeLayout 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 13 with CutCornerTreatment

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

the class RecyclerView 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 14 with CutCornerTreatment

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

the class LinearLayout 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 15 with CutCornerTreatment

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

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