Search in sources :

Example 11 with RoundedCornerTreatment

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

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

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

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

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

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

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

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

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

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