Hi there I've got a ViewPager for wich I want to enable HorizontalFadingEdge, everything works find except that it works only for the left side of the Pager. Is there a way to get the desired effect for both left and right ?
Here are some relevant snippets:
XML:
<android.support.v4.view.ViewPager
android:id="@+id/view_pager_preview"
android:layout_width="match_parent"
android:layout_height="96dp">
Setup:
pager_preview.setClipToPadding(false);
pager_preview.setPageMargin(-50);
pager_preview.setHorizontalFadingEdgeEnabled(true);
pager_preview.setFadingEdgeLength(20);
Any ideas about that ?
*Edit:
I found something like an answer to my question here: fading edges working only on top and left