Is it possible to change the size of icon inside EditText

后端 未结 3 1879
南旧
南旧 2021-02-20 09:56

I am creating a login window with username and password fields and in each I would like to put icons. When I add icon to EditText field I cannot change the size of icon.

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-20 10:44

    In case you'd like to solve the problem in xml, here's sample code where you can manipulate your image size/padding:

    
    
    
        
        
    
        
        
    
    
    

    And here is how it looks like:

提交回复
热议问题