Search in sources :

Example 1 with MaterialShapeDrawable

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();
}
Also used : MaterialShapeDrawable(com.google.android.material.shape.MaterialShapeDrawable)

Example 2 with MaterialShapeDrawable

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();
}
Also used : MaterialShapeDrawable(com.google.android.material.shape.MaterialShapeDrawable)

Example 3 with MaterialShapeDrawable

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();
}
Also used : MaterialShapeDrawable(com.google.android.material.shape.MaterialShapeDrawable)

Example 4 with MaterialShapeDrawable

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();
}
Also used : MaterialShapeDrawable(com.google.android.material.shape.MaterialShapeDrawable)

Example 5 with MaterialShapeDrawable

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();
}
Also used : MaterialShapeDrawable(com.google.android.material.shape.MaterialShapeDrawable)

Aggregations

MaterialShapeDrawable (com.google.android.material.shape.MaterialShapeDrawable)21 View (android.view.View)2 Window (android.view.Window)2 NonNull (androidx.annotation.NonNull)2 RecyclerView (androidx.recyclerview.widget.RecyclerView)2 BottomSheetBehavior (com.google.android.material.bottomsheet.BottomSheetBehavior)2 BottomSheetDialog (com.google.android.material.bottomsheet.BottomSheetDialog)2 ShapeAppearanceModel (com.google.android.material.shape.ShapeAppearanceModel)2 EmojiPageView (org.thoughtcrime.securesms.components.emoji.EmojiPageView)2 KeyboardPageSearchView (org.thoughtcrime.securesms.keyboard.emoji.KeyboardPageSearchView)2 TypedValue (android.util.TypedValue)1