android: border for Layout View

There is no special parameter for making a border in Layout View.
I found a method to define border for a Layout View.
Create background rules xml file in drawable/borders.xml

and specify background in your Layout View:

This will add top and bottom borders with 1sp size.