I am trying to make a frame from code so that I can apply it to make rounded inner corners with a solid fill outside and transparent inside. Just like a solid re
First of all, create 3 xml
layout
in drawable folder:
(You can change this name as you wish),
frame.xml:
frame_build.xml :
red.xml
Finally refer your view or layout to Frame XML as follow :
android:background="@drawable/frame"
This tested and output as below image:
Hope this help .