Android - OnClick inside gridview row

前端 未结 2 863
梦如初夏
梦如初夏 2021-01-26 04:19

I\'m trying to launch a activity from a button inside my gridview item, meaning that when user click on gridview Item it should do one function and when the user click on the bu

2条回答
  •  粉色の甜心
    2021-01-26 04:56

    Change you XML, i have tested below xml its works fine with GridView

    
    
        
    
    
            
    
    
            
    
                
    
                
    
                    
    
                    
                
            
    
            
    
                

    Your Grid View XML will be Like this.

    
    
        
    

提交回复
热议问题