File tree 1 file changed +1
-5
lines changed
app/src/main/java/cz/hlinkapp/flidea/views
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,15 @@ import android.content.Context
4
4
import android.graphics.Canvas
5
5
import android.graphics.Path
6
6
import android.graphics.RectF
7
- import android.graphics.Region
8
7
import android.util.AttributeSet
9
- import android.view.View
10
8
import android.widget.FrameLayout
11
9
import androidx.annotation.Nullable
12
10
import cz.hlinkapp.flidea.R
13
11
14
12
15
13
/* *
16
14
* Custom wrapper view to get round corner round view
17
- * From https://gist.github.com/Ahmed-Abdelmeged/662007e7af74301c6758634041082676
15
+ * From https://gist.github.com/Ahmed-Abdelmeged/662007e7af74301c6758634041082676, modified
18
16
*/
19
17
class RoundedView : FrameLayout {
20
18
@@ -59,7 +57,6 @@ class RoundedView : FrameLayout {
59
57
typedArray.getDimension(R .styleable.RoundedView_bottomRightCornerRadius , 0f )
60
58
61
59
typedArray.recycle()
62
- setLayerType(View .LAYER_TYPE_SOFTWARE , null )
63
60
}
64
61
65
62
override fun dispatchDraw (canvas : Canvas ) {
@@ -84,7 +81,6 @@ class RoundedView : FrameLayout {
84
81
Path .Direction .CW
85
82
)
86
83
87
- canvas.clipPath(path, Region .Op .REPLACE )
88
84
canvas.clipPath(path)
89
85
90
86
super .dispatchDraw(canvas)
You can’t perform that action at this time.
0 commit comments