Open xaxist opened 9 years ago
UltimateRecyclerview. mRecyclerView is geting the main recyclerview directly.
Any idea why the card view is always null? Is it because the adapter takes some time to add the card to the recycler view? Any potential solution to access the card view after adding is appreciated. Thanks!
I have setup a recycler view that displays a card layout using adapter. I need to set the padding of first and last card only. Is there any way, I can access the card directly?
After setting up the adapter for recycler view, I tried to accesse the first card by using following code, but it always returns null. Any help is appreciated.
CardView cv = (CardView)recyclerView.mRecyclerView.getChildAt(0);
where recyclerView being the Instance of UltimateRecyclerView.