I need to make my scrollview to be transparent at top and bottom while the underneath text view could be scrolled like shown below.
I made one .png image in photoshop with gradient (black on top) and transparency at bottom.
When I added the image onto the Image view that is atop the scorllview, and run it on the simulator, the whole image is pure black and transparency gone.
Can someone please advise?
2
Answers
My mistake... I have saved the image as JPG. not PNG. PNG is working properly. Thanks!
Set your imageView’s background color to clear.
Also, wouldn’t the image you need be white on bottom and transparent on top, rather than black on top and transparent on bottom?