How can I change transparent alpha of corona view?

I use ‘display.setDefault(“background”, 0, 0, 0, 0)’.

But it does not work.

How can I change transparent alpha of corona view to 0?

I wanna show native image view under corona view.

Hello, Can you please explain your problem a little more clearly? 

I’m not sure what you want… 

Do you want to make your background invisible? 

Thanks!

Yes. I wanna make my coronaview’s background invisible.

It is not ScrollView, Rectangle, …, it is CoronaView of CoronaCards.

Thank you. (-:

Hi @Kangmin Won,

Which platform are you using CoronaCards on?

Brent

Platform: Android

CoronaCards: latest version

IDE: Android Studio

I know iOS supports ‘opaque=false’.

But can Android support it? I need it.

Thank you. Brent. (-:

I don’t think it’s possible on Android.  Or at least to do it reliably.  This is because your OpenGL rendered content is done via Google’s “GLSurfaceView” Java class and any “SurfaceView” derived class is technically not part of your view hierarchy’s z-order.  An Android SurfaceView is rendered on a separate thread outside of the main UI thread and, according to Google’s documentation, it’s technically behind your app’s activity window regardless of where you really put the SurfaceView in your activity’s z-order hierarchy.  Google really intended for SurfaceView derived classes such as GLSurfaceView and VideoViews to be at the bottom of the z-order.  You can read more about it via the following links…

   http://developer.android.com/reference/android/view/SurfaceView.html

   https://source.android.com/devices/graphics/architecture.html#surfaceview

You can experiment with it on the Java side if you like, but I and other Java developers have never found a solid working solution.  This appears to be an Android OS limitation.

ok. it is impossible. I know. but I’m sad. )-:

Hello, Can you please explain your problem a little more clearly? 

I’m not sure what you want… 

Do you want to make your background invisible? 

Thanks!

Yes. I wanna make my coronaview’s background invisible.

It is not ScrollView, Rectangle, …, it is CoronaView of CoronaCards.

Thank you. (-:

Hi @Kangmin Won,

Which platform are you using CoronaCards on?

Brent

Platform: Android

CoronaCards: latest version

IDE: Android Studio

I know iOS supports ‘opaque=false’.

But can Android support it? I need it.

Thank you. Brent. (-:

I don’t think it’s possible on Android.  Or at least to do it reliably.  This is because your OpenGL rendered content is done via Google’s “GLSurfaceView” Java class and any “SurfaceView” derived class is technically not part of your view hierarchy’s z-order.  An Android SurfaceView is rendered on a separate thread outside of the main UI thread and, according to Google’s documentation, it’s technically behind your app’s activity window regardless of where you really put the SurfaceView in your activity’s z-order hierarchy.  Google really intended for SurfaceView derived classes such as GLSurfaceView and VideoViews to be at the bottom of the z-order.  You can read more about it via the following links…

   http://developer.android.com/reference/android/view/SurfaceView.html

   https://source.android.com/devices/graphics/architecture.html#surfaceview

You can experiment with it on the Java side if you like, but I and other Java developers have never found a solid working solution.  This appears to be an Android OS limitation.

ok. it is impossible. I know. but I’m sad. )-: