I am trying to create a form with section separators / separators, for example in the Android Settings.

I checked the activity by dropping the view hierarchy, and I noticed that the separator is just some kind of padding with a drawn gradient. There are only 2 LinearLayouts (1,2), and there is no view between them (3).

Is there an βAndroidβ way to draw the same separator?
I do not want to create ad-hoc solutions.
source share