File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
catalog/java/io/material/catalog/imageview/res/layout
lib/java/com/google/android/material/imageview Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 6666 app : strokeColor =" ?attr/colorSecondary"
6767 app : shapeAppearance =" ?attr/shapeAppearanceMediumComponent"
6868 app : strokeWidth =" 1dp"
69- app : elevation =" 5dp"
69+ android : elevation =" 5dp"
7070 android : padding =" 8dp"
7171 app : srcCompat =" @drawable/dog_image" />
7272
8585 android : layout_height =" wrap_content"
8686 android : adjustViewBounds =" true"
8787 android : scaleType =" fitXY"
88- app : elevation =" 5dp"
88+ android : elevation =" 5dp"
8989 app : shapeAppearance =" @style/ShapeAppearanceImageLeft"
9090 app : srcCompat =" @drawable/cat_image"
9191 app : strokeColor =" ?attr/colorSecondary"
9999 android : layout_weight =" 1"
100100 android : adjustViewBounds =" true"
101101 android : scaleType =" fitXY"
102- app : elevation =" 5dp"
102+ android : elevation =" 5dp"
103103 app : shapeAppearance =" @style/ShapeAppearanceImageRight"
104104 app : srcCompat =" @drawable/cateyes_image"
105105 app : strokeColor =" ?attr/colorSecondary"
Original file line number Diff line number Diff line change @@ -146,6 +146,9 @@ public void setShapeAppearanceModel(@NonNull ShapeAppearanceModel shapeAppearanc
146146 }
147147 updateShapeMask (getWidth (), getHeight ());
148148 invalidate ();
149+ if (VERSION .SDK_INT >= 21 ) {
150+ invalidateOutline ();
151+ }
149152 }
150153
151154 @ NonNull
You can’t perform that action at this time.
0 commit comments