use of com.google.android.material.shape.MaterialShapeDrawable in project Carbon by ZieIony.
the class EditText 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 Button 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 CoordinatorLayout 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 View 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 AppBarLayout 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