Code example for ViewPager

0
    public ListViewPager(Context context) {
        super(context);
    } 
 
    public ListViewPager(Context context, AttributeSet attrs) {
        super(context, attrs);
    } 
 
    public void setAdapter(MultiListPagerAdapter adapter) {
        super.setAdapter(adapter);
    } 
 
    public MultiListPagerAdapter getAdapter() { 
        return (MultiListPagerAdapter) super.getAdapter(); 
    } 
}