use of com.google.android.material.shape.MaterialShapeDrawable in project Carbon by ZieIony.
the class FlowLayout method setShapeModel.
@Override
public void setShapeModel(@NotNull ShapeAppearanceModel model) {
this.shapeModel = model;
shadowDrawable = new MaterialShapeDrawable(shapeModel);
if (getWidth() > 0 && getHeight() > 0)
updateCorners();
if (!Carbon.IS_LOLLIPOP_OR_HIGHER)
postInvalidate();
}
use of com.google.android.material.shape.MaterialShapeDrawable in project Carbon by ZieIony.
the class DrawerLayout method setShapeModel.
@Override
public void setShapeModel(@NotNull ShapeAppearanceModel model) {
this.shapeModel = model;
shadowDrawable = new MaterialShapeDrawable(shapeModel);
if (getWidth() > 0 && getHeight() > 0)
updateCorners();
if (!Carbon.IS_LOLLIPOP_OR_HIGHER)
postInvalidate();
}
use of com.google.android.material.shape.MaterialShapeDrawable in project Carbon by ZieIony.
the class ImageView method setShapeModel.
@Override
public void setShapeModel(@NotNull ShapeAppearanceModel model) {
this.shapeModel = model;
shadowDrawable = new MaterialShapeDrawable(shapeModel);
if (getWidth() > 0 && getHeight() > 0)
updateCorners();
if (!Carbon.IS_LOLLIPOP_OR_HIGHER)
postInvalidate();
}
use of com.google.android.material.shape.MaterialShapeDrawable in project Carbon by ZieIony.
the class RecyclerView method setShapeModel.
@Override
public void setShapeModel(@NotNull ShapeAppearanceModel model) {
this.shapeModel = model;
shadowDrawable = new MaterialShapeDrawable(shapeModel);
if (getWidth() > 0 && getHeight() > 0)
updateCorners();
if (!Carbon.IS_LOLLIPOP_OR_HIGHER)
postInvalidate();
}
use of com.google.android.material.shape.MaterialShapeDrawable in project Carbon by ZieIony.
the class TextView method setShapeModel.
@Override
public void setShapeModel(@NotNull ShapeAppearanceModel model) {
this.shapeModel = model;
shadowDrawable = new MaterialShapeDrawable(shapeModel);
if (getWidth() > 0 && getHeight() > 0)
updateCorners();
if (!Carbon.IS_LOLLIPOP_OR_HIGHER)
postInvalidate();
}
Aggregations