How to remove the extra padding at the beginning and end of android viewpager? -


i want remove padding/margin @ 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> 

check out this answer. can try these methods on viewpager.

setpagemargin(int marginpixels) setpagemargindrawable(drawable d) setpagemargindrawable(int resid) 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -