I have a scrollable EdiText with padding but as you know, when you scroll the text inside the EditText, it gets clipped off by the padding instead of overlapping it.
The EditText doesn't have the clipToPadding option. Is there a way to mimic clipToPadding="false" feature which is available in the ViewGroup?
This is a bit hacky, but you can add a transparent shadow with a shadow radius equal to the bottom padding.
e.g.
editText.setShadowLayer(editText.extendedPaddingBottom.toFloat(), 0f, 0f, Color.TRANSPARENT)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With