Invisible view detection in motion event

As I already tried views with movement by dragging and dropping scrolling Android docs . I'm not explicitly talking about the basics of this, but I want to hide or invisible view that will be visible when another view , which is dragged or using motion , can be sent to a hidden or invisible surface area?

+6
source share
2 answers

Set the tag for viewing, and after that, when you tap the verification tag to check that view in MotionEvent.ACTION_DOWN or MotionEvent.ACTION_MOVE and set View.setVisibility (View.INVISIBLE) for other views.

+1
source

I think it should be easy using transparent color for this presentation. Even you will use the ViewGroup with other elements, you can simply create a method for updating parameters (for example, background, color, image, etc.) for a transparent type.

-one
source

Source: https://habr.com/ru/post/1011943/


All Articles