how to make a capsule shape Button in android?

后端 未结 7 2005
一整个雨季
一整个雨季 2021-01-31 15:56

I want to make a button exactly like in this image

\"Capsule

I want to use a xml file that will us

7条回答
  •  执笔经年
    2021-01-31 16:21

    Here is code to create button in xml,but if you want to create button as a capsule shaped you have to add the background

            
    

    create button_background.xml in drawable folder,write the following code in button_background.xml

             
    
              
    
              
    
             
    
              
    
          
    

提交回复
热议问题