Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to "look" through a view onto the parent without transparency?

is it possible to look a view/a stack of views to its parent view, as if I would directly look onto it?

I mean, not just getting the parent view as an image and setting it onto the top layer. Imagine, the parent one is partial transparent, and I also want to see this transparency.

The reason why I´m asking you can see on the picture above.

I basically want to have a modifyable mask as a toplayer, which allows me to set corner radius at runtime, affecting the complete view of all layouts together but without modifying each one.

I want to transfer the direct view onto the parent to the top layer.

Is there any possibility to do that? enter image description here http://img12.imageshack.us/img12/379/layoutsm.png

like image 589
Marian Klühspies Avatar asked Dec 28 '25 11:12

Marian Klühspies


1 Answers

You can try:

android:background="@null"

Or as Hissain mentioned, you can try

android:background="@android:color/transparent"

Reference for more info How to have a transparent ImageButton: Android

like image 85
Corey Scott Avatar answered Dec 31 '25 02:12

Corey Scott



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!