Search in sources :

Example 16 with MaterialShapeDrawable

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

Example 17 with MaterialShapeDrawable

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

Example 18 with MaterialShapeDrawable

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

Example 19 with MaterialShapeDrawable

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

Example 20 with MaterialShapeDrawable

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();
}
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