This is what I'm trying to achieve.

The black rectangle is the image object that I need to move left and right to the corresponding touch / drag events
Being relatively new to Android, I find it difficult to implement.
So I was hoping I could get some tips, guides, examples, if any.
EDIT: I tried viewflipper, but thatโs not what I need here, I tried to make the slider like a search bar, but it didnโt work.
Someone suggested that I use framelayout above the main image for the slide, but I don't know how to do it.
So any help that helps me here is appreciated
source share