Home > Net >  How can i make my recyclerview translucent
How can i make my recyclerview translucent

Time:02-23

I am trying to make a fragment for search view , where i want my recycler view to be translucent ( the whole view ).

Something like this : enter image description here

i tried changing the alpha , but it did not help much ! suggestions on what can be done ?

CodePudding user response:

Just set the background colour of your recycler view to transparent colour value. Transparent hex code: #00000000

And if you want it to be translucent then, try using the colour picker of android studio and change the opacity accordingly to get your desired transparency.

CodePudding user response:

I figured it out !!

I added a empty view on top of the reyclerview , with a background colour & alpha of 0.1

also changed the alpha of the recycler view to 0.5

Adding the extra empty view was the key that i was missing

  • Related