-1

I want to make something like this http://mobilesyrup.com/wp-content/uploads/2014/10/playnewsstandmaterialdesign.png, where i uses cardslib, but can i make a "fake" card that is transparent? I want it to work so you can swipe down to show the background picture, and swipe up to show the cards.

-Mariogrip

Mariogrip
  • 111
  • 1
  • 1
  • 4
  • I have tried this parent.setBackgroundColor(mContext.getResources(). getColor(android.R.color.transparent)); it just shows white – Mariogrip Feb 02 '15 at 21:17

1 Answers1

0

If you want to make card transparent - use View#setAlpha(float) to control transparency of your card. Example:

cardView.setAlpha(.5f); //make it 50% transparent
Pavel Dudka
  • 20,754
  • 7
  • 70
  • 83