1

I want to remove the extra padding/margin at the viewpager. See attached image here https://www.dropbox.com/s/gsqzae28mvihy96/Screenshot_2015-07-22-17-59-30.png?dl=0

XML:

<android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/pager"
    android:layout_width="fill_parent"
    android:layout_height="match_parent"
    tools:context="com.masterscroll.masterscroll.CommunityActivity2"
    android:padding="0dp">
</android.support.v4.view.ViewPager>
user215833
  • 21
  • 1
  • 5

1 Answers1

1

Check out this answer. You can try these methods on your ViewPager.

setPageMargin(int marginPixels)
setPageMarginDrawable(drawable d)
setPageMarginDrawable(int resId)
Community
  • 1
  • 1
ThePartyTurtle
  • 2,276
  • 2
  • 18
  • 32