0

I have a screen split in 2. The bottom half is white and the top half is green. I want to use the swipe gesture only on the white zone so that when I swipe left or right the green zone changes colors. I want only the white zone to recognize gestures, the green one just changes colors when O swipe on the white zone.

Can someone please tell me how to do that?

Opal
  • 81,889
  • 28
  • 189
  • 210
johnDoe
  • 11
  • 5
  • 1
    possible duplicate of [Android: How to handle right to left swipe gestures](http://stackoverflow.com/questions/4139288/android-how-to-handle-right-to-left-swipe-gestures) – Mostrapotski May 18 '15 at 08:26

1 Answers1

0

On your white view, register a touch listener to detect the gestures you need.

Look this: Android: How to handle right to left swipe gestures

Community
  • 1
  • 1
Mostrapotski
  • 425
  • 3
  • 11