Android List Item: TextView on left, Image on right

前端 未结 6 1149
庸人自扰
庸人自扰 2021-02-04 09:24

I\'m creating a custom list item in and android list view. it\'s very simple, it has a textview on the left and an image on the right. the image should align all the way right,

6条回答
  •  無奈伤痛
    2021-02-04 10:15

    You can use bitmap drawable like this (this also adds rounded corners):

    
        
            
                
                
                
            
        
        
            
        
    
    

    and put this drawable in background property of your TextView:

    
    

提交回复
热议问题