android:drawableLeft margin and/or padding

后端 未结 18 2248
猫巷女王i
猫巷女王i 2020-11-27 09:29

Is it possible to set the margin or padding for the image which we added with the android:drawableLeft?

18条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 10:09

    You should consider using layer-list

    Create a drawable file like this, name it as ic_calendar.xml

    
    
    
        
            
        
    
    
        
    
    
    

    Under layout file,

    
    

提交回复
热议问题