android-gpuimage icon indicating copy to clipboard operation
android-gpuimage copied to clipboard

gpuImage.setVisibility(View.VISIBLE) not work

Open onexuan opened this issue 5 years ago • 2 comments

gpuImage.setVisibility(View.VISIBLE) not work

onexuan avatar Aug 16 '19 05:08 onexuan

Please check your code again, this method of the Android View.

monxarat avatar Oct 30 '19 07:10 monxarat

Please check your code again, this method of the Android View.

no he is actually right. there is something for sure going on in case of the visibility / alpha value support of the gpuimage.GPUImageView (i guess thats what onexuan was refering to, right? - because the gpuImage itself isnt meant to be visible on its own as far as i understand this project. if u want to make it visible, u either need to set it up within a GLSurfaceView or a GPUImageView )

what i noticed is pretty much the opposite though. its really tought to hide the gpuimage.GPUImageView using whatever common method that use to work fine for any other type of view - like:

setAlpha(.0f) -> doesnt work. alpha in general seems to be completely out of the question to work on a surface view like that. even setVisibility.INVISIBLE or .GONE wasnt doing any promising.

only way to hide a GPUImageView so far that worked for me, is to scall it to 0 either on its height or width, lol.

moelle89 avatar Nov 26 '19 21:11 moelle89