Android drawable speech bubble

前端 未结 6 542
情深已故
情深已故 2020-12-04 14:10

I\'ve looked for days and can not find any good leads on how I can draw a bubble or where a draw 9 patch images is to use as a background. i am a terrible artist --Can anyo

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 15:10

    I know its bit too late for this. For those, who don't want to use 9-patch images yet want to cast shadows from speech bubble. This is closest I could get to WhatsApp speech bubble. And thanks to @toobsco42 for the answer above.

    Here you go..

    Incoming Speech Bubble :

    
    
    
    
    
    
        
            
                
                
                
            
        
    
    
        
            
            
            
        
    
    
    
    
        
            
                
                
                
            
        
    
    
        
            
            
            
        
    
    
    
    
    
        
            
                
                
                
            
        
    
    
        
            
            
            
        
    
    
    
    
    
        
            
                
                
            
        
    
    
        
            
            
        
    
    
    
    

    Outgoing Speech Bubble :

    
    
    
    
    
    
        
            
                
                
                
            
        
    
    
        
            
            
            
        
    
    
    
    
    
        
            
                
                
                
            
        
    
    
        
            
            
            
        
    
    
    
    
    
        
            
                
                
                
            
        
    
    
        
            
            
            
        
    
    
    
    
    
    
    
    
        
            
                
            
        
    
    
        
            
            
        
    
    
    
    

    Use the paddings properly in the layout. I used these values :

    
    

    My output came out like this:

提交回复
热议问题