In My android xml layout i am applying the border by using the borderframe.xml as a background.
borderframe.xml file is looks like below:
I am also facing the same problem. But for that I use layer-list. I post my answer here which may help you. Please check output screen