Skip to content Skip to sidebar Skip to footer

Recycleview Displaying A Grey Area

the RecyclerView is not shown as in the picture below and i cannot find any solution. What i tried: Rebuild Clean project Invalidate Cache My build.gradle(Module:app) apply plu

Solution 1:

Well, 28.0.0 support library-APIs dependency actually works better with Android Studio 3.2.0 and up and this is because of AndroidX migrating.

So, upgrading Android Studio will help since you already added RecyclerView dependency and there were no issues with the preview nor, no errors shown.

Solution 2:

The way I got rid of my gray recyclerview was pasting 'com.android.support:recyclerview-v7:28.0.0' to dependencies. Sorry in case this is what you did to begin with!

There is another way to do it which is clicking on the little download icon that appears next to recyclerview when you search for it but that always results in the grey screen for me.

Solution 3:

I had the same problem, after spending approximately 2 days to figure it out, I went forward to

•delete the activity •create a new one •then add the RecyclerView to it and it worked like charm.

Post a Comment for "Recycleview Displaying A Grey Area"