Search in sources :

Example 16 with RoundedCornerTreatment

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

the class FlowLayout method setCornerRadius.

/**
 * Sets the corner radius. If corner radius is equal to 0, rounded corners are turned off.
 *
 * @param cornerRadius
 */
@Override
public void setCornerRadius(float cornerRadius) {
    shapeModel = ShapeAppearanceModel.builder().setAllCorners(new RoundedCornerTreatment(cornerRadius)).build();
    setShapeModel(shapeModel);
}
Also used : RoundedCornerTreatment(com.google.android.material.shape.RoundedCornerTreatment)

Example 17 with RoundedCornerTreatment

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

the class DrawerLayout method setCornerRadius.

/**
 * Sets the corner radius. If corner radius is equal to 0, rounded corners are turned off.
 *
 * @param cornerRadius
 */
@Override
public void setCornerRadius(float cornerRadius) {
    shapeModel = ShapeAppearanceModel.builder().setAllCorners(new RoundedCornerTreatment(cornerRadius)).build();
    setShapeModel(shapeModel);
}
Also used : RoundedCornerTreatment(com.google.android.material.shape.RoundedCornerTreatment)

Example 18 with RoundedCornerTreatment

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

the class Button method setCornerRadius.

/**
 * Sets the corner radius. If corner radius is equal to 0, rounded corners are turned off.
 *
 * @param cornerRadius
 */
@Override
public void setCornerRadius(float cornerRadius) {
    shapeModel = ShapeAppearanceModel.builder().setAllCorners(new RoundedCornerTreatment(cornerRadius)).build();
    setShapeModel(shapeModel);
}
Also used : RoundedCornerTreatment(com.google.android.material.shape.RoundedCornerTreatment)

Example 19 with RoundedCornerTreatment

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

the class View method setCornerRadius.

/**
 * Sets the corner radius. If corner radius is equal to 0, rounded corners are turned off.
 *
 * @param cornerRadius
 */
@Override
public void setCornerRadius(float cornerRadius) {
    shapeModel = ShapeAppearanceModel.builder().setAllCorners(new RoundedCornerTreatment(cornerRadius)).build();
    setShapeModel(shapeModel);
}
Also used : RoundedCornerTreatment(com.google.android.material.shape.RoundedCornerTreatment)

Aggregations

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