Rounded corners for TABS in android

后端 未结 7 2130
甜味超标
甜味超标 2020-12-21 05:35

I want to achieve rounded corners for the tab that I\'ve constructed in my application. So far I was able to come up with this

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-21 06:13

    I think you should use 4 shapes:

    • for left button not selected

    • for left button selected

    • for right button not selected

    • for right button selected

    And then write selector to use for button background, see example for the left button (for the right just the similar):

    
    
    
    
      
      
    
    
    
    
        
          
       
    
    
    

提交回复
热议问题