Android ViewPager with previous and next pages visible?

I used a negative page margin to partly show the next and the previous pages. The fading edge property can be used to make previous/next page fade.

Up vote 4 down vote favorite 1 share g+ share fb share tw.

I am currently building a horizontal gallery of videos. I'd like to make something like that with only one video centered and part of previous and next videos: I first opted for a Gallery but its limitations made me look for something else. I'd like to show a page indicator and it is quite difficult to implement using a Gallery.

The second option was to go for a ViewPager from Android Compatibility library. I found a way to implement a page indicator over it. But now, how to partly show left and right pages?

Android gallery pager android-viewpager android-compat-lib link|improve this question edited Oct 11 '11 at 11:18 asked Oct 11 '11 at 11:06Romain Piel1,016315 83% accept rate.

I used a negative page margin to partly show the next and the previous pages. The fading edge property can be used to make previous/next page fade: ViewPager examplePager = (ViewPager) findViewById(R.id. ExampleView); examplePager.

SetPageMargin(-50); examplePager. SetHorizontalFadingEdgeEnabled(true); examplePager. SetFadingEdgeLength(30); The lastest support package (revision 4, October 2011) is also required for this to work.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions