Android Ripple Effect Overridden by Selected State

后端 未结 3 699
伪装坚强ぢ
伪装坚强ぢ 2021-01-05 03:56

After having been looking for a while I\'ve not been able to find an answer to this...

I have a recycler view with items which when selected have a red background an

3条回答
  •  感动是毒
    2021-01-05 04:42

    So I have another case in which I had to use selector as well as layer list for that

    
    
        
            
                
                    
                        
                            
                                
                            
                        
                        
                        
                            
                                
                            
                        
    
                    
                
            
    
        
        
            
                
                    
                    
    
                        
                            
                                
                            
                        
    
                        
                            
                                
                            
                        
    
                    
                
            
        
    
    

    This worked, for your need what you can do it just replace the item under ripple with your item shape if you don't have any layering. Hope this helps

提交回复
热议问题