Skip to content

Commit 247eabf

Browse files
authored
Merge pull request #5 from gohlinka2/fix-elevation
Fixed elevation of main activity layout views
2 parents 5a16627 + 8715bd2 commit 247eabf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/src/main/java/cz/hlinkapp/flidea/views/RoundedView.kt

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@ import android.content.Context
44
import android.graphics.Canvas
55
import android.graphics.Path
66
import android.graphics.RectF
7-
import android.graphics.Region
87
import android.util.AttributeSet
9-
import android.view.View
108
import android.widget.FrameLayout
119
import androidx.annotation.Nullable
1210
import cz.hlinkapp.flidea.R
1311

1412

1513
/**
1614
* 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
1816
*/
1917
class RoundedView : FrameLayout {
2018

@@ -59,7 +57,6 @@ class RoundedView : FrameLayout {
5957
typedArray.getDimension(R.styleable.RoundedView_bottomRightCornerRadius, 0f)
6058

6159
typedArray.recycle()
62-
setLayerType(View.LAYER_TYPE_SOFTWARE, null)
6360
}
6461

6562
override fun dispatchDraw(canvas: Canvas) {
@@ -84,7 +81,6 @@ class RoundedView : FrameLayout {
8481
Path.Direction.CW
8582
)
8683

87-
canvas.clipPath(path, Region.Op.REPLACE)
8884
canvas.clipPath(path)
8985

9086
super.dispatchDraw(canvas)

0 commit comments

Comments
 (0)