Search in sources :

Example 6 with RoundedCornerTreatment

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

the class ImageView 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 7 with RoundedCornerTreatment

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

the class MotionLayout 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 8 with RoundedCornerTreatment

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

the class RecyclerView 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 9 with RoundedCornerTreatment

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

the class RelativeLayout 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 10 with RoundedCornerTreatment

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

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