Why i am not able to create the round border for specific corner?

后端 未结 4 1955
我在风中等你
我在风中等你 2020-12-30 02:19

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:

    

        
4条回答
  •  佛祖请我去吃肉
    2020-12-30 03:19

    I got the solution on one of the forums. I solved it by commenting each corner & adding to the xml in drawable. I have retained commented code below only for understanding.

    XML Code-

       
        
            
            
          
            
        
    

    ---Edited- The above code is my back.xml in drawable folder and if required you can add padding to the same back.xml. For those who are new developers, the back.xml is referenced from your layout file as follows

      
    

    Hope this helps.

提交回复
热议问题