Search in sources :

Example 11 with MaterialShapeDrawable

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

the class RelativeLayout 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 12 with MaterialShapeDrawable

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

the class GridLayout 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 13 with MaterialShapeDrawable

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

the class LinearLayout 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 14 with MaterialShapeDrawable

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

the class FrameLayout 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 15 with MaterialShapeDrawable

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

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