• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to create a slider ON AN image

vivekh

Lurker
This is what I am trying to achieve

pi5eM.png


The black rectangle is an image asset which i need to move left and right on related touch events/drags

Being relatively new to Android , I am finding this difficult to implement.

So was hoping I could get some tips,guides,examples if there are any.

I Have tried viewflipper but that is not what I need here, I tried making a slider like a seek bar , but didn't work out.

Some one suggested that I use a framelayout over the main image to slide but I don't know how to do it.

So any help which will help me out here is appreciated
 
I don't really know how your app is configured but I would do this with a SurfaceView and just do all the touch events manually - that's why I like SurfaceView the most because it's all up to you to do anything not the OS.
 
Back
Top Bottom