nickk
08/09/2019, 12:04 PMview { cornerRadius = 3 }
or
view { shadowRadius = 2 }
louiscad
08/09/2019, 1:12 PMispbox
08/09/2019, 5:44 PM<?xml version="1.0" encoding="utf-8"?>
<ripple
xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?android:colorControlHighlight">
<item>
<shape android:shape="rectangle">
<corners android:radius="3dp" />
<solid android:color="@android:color/white" />
</shape>
</item>
</ripple>
and just use this style in button creation:
setBackgroundResource(R.drawable.ripple)
In this way I get nice ripple effect, rounded corners and some shadow.