Touch feedback with RecyclerView and CardView

前端 未结 10 754
一向
一向 2020-12-07 09:32

I would love to enable touch feedback for my Open-Source library.

I\'ve created a RecyclerView and a CardView. The CardView co

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 10:22

    Had the same problem as Jiang:

    I have to set the attributes to the layout-file, which is inflating the RecycleView.

    My Main-Layout: (Don't add the properties here!)

    
    
    
    
    
    
    
    
    

    My RecycleViewAdapter:

                View v = inflater.inflate(R.layout.list_center_item, parent, false);
    

    My list_center_item.xml (Add the properties here!)

    
    
    
    
    

提交回复
热议问题