Your problem is similar to one CommonWare's blog. Multiple-View ViewPager Options There are three approach. One of those is override getPageWidth() in your PagerAdapter:

@Overridepublicfloat getPageWidth(int position){return(0.5f);}

The others is more complicated but there're attach source and long explanation so i don't copy here.

resource url : http://stackoverflow.com/questions/13194666/how-to-set-viewpager-size

arrow
arrow
    文章標籤
    Java Android
    全站熱搜

    techdrew 發表在 痞客邦 留言(0) 人氣()