I have:
I\'d like to remove this border from the bottom (for example) of the el
This is a bit of a hack, but its possible to remove one or more borders using an inset
drawable with negative values. Wrap the shape in an inset
and apply a negative android:insetTop
, android:insetBottom
, android:insetLeft
, or android:insetRight
with abs value equal to the stroke width.
For example, to remove the bottom border from a rectangle with a 4dp
stroke, use a android:insetBottom
value of -4dp
.
This seems to work well as long as the shape's corners have a radius that is less than equal to the stroke width. Otherwise use the larger of the two values (the radius) when applying the inset in order to completely hide the rounded portions of the adjacent borders.