I want to create a swipeable views in android. My aim is to achieve this effect.
Here, on swiping right i want to change only image source, background image should be fixed.
How can this be achieved?
I want to create a swipeable views in android. My aim is to achieve this effect.
Here, on swiping right i want to change only image source, background image should be fixed.
How can this be achieved?
You can use the ViewPager
, see here.
You will have to modify it a bit.
Select a transparent background for the ViewPager
, and set the background Image you need to the parent View
of the ViewPager
. The sample code for the implementation are here and also check the related xml files.