Android custom buttons layout

前端 未结 1 579
醉话见心
醉话见心 2021-01-03 13:57

How can I create buttons like the \"ABN Amro Bankieren\" application for the Netherlands with onclick handlers?

Screenshot ABN Amro app

1条回答
  •  北海茫月
    2021-01-03 14:42

    You have to make 2 pressed and normal (it may be 4 for focused and disabled) xml layout for each 3 top, center and bottom buttons. This is example xml for the center button for normal state is

    
    
        
              
    
    

    to make it rounded corner you may use corner tag for top button

    
    

    this may cause problem in xml layout editer but will be fine on emulator or real device

    0 讨论(0)
提交回复
热议问题