Night Owl
Night Owl

Reputation: 211

Invisible views detection on motion event

As i already tried views with motion drag reading Android docs. I have clearly not saying about basics of it but i want to hide orinvisible view which will be visible when other view which is being dragged or using motion can taken to the hidden orinvisible surface area ?

Upvotes: 6

Views: 149

Answers (2)

MIkka Marmik
MIkka Marmik

Reputation: 1102

Set tag of to view and after that when you touch view check tag of that view in MotionEvent.ACTION_DOWN or MotionEvent.ACTION_MOVE and set View.setVisibility(View.INVISIBLE) for other views.

Upvotes: 1

GensaGames
GensaGames

Reputation: 5788

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

Upvotes: 0

Related Questions