Questions tagged [android-viewpager]

ViewPager.setcurrentItem( ) freezes ui

The ViewPager is a widget for Android that makes possible displaying different views (or fragments) side by side allowing the user to swipe between them. ViewPager was released as part of the Compatibility Package revision 3 and works with Android 1.6 upwards. ViewPager is a ViewGroup and works in a similar manner to AdapterViews (like ListView and Gallery).

Official Documentation

10802 questions
4
votes
0 answers

WebView and ViewPager, and Horizontal Scrollable Content

I have multiple WebViews showed in ViewPager, as pages, but i faced a problem if part of WebView content is Horizontal Scrollable content, I have tested it on iOS, and the WebView consume the TouchEvent, so the ViewPager doesn't scroll, but in…
Mohammad Ersan
  • 12,304
  • 8
  • 54
  • 77
4
votes
1 answer

android ViewPager - detect page scroll state

I have a ViewPager with a Listener: viewpager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() { @Override public void onPageSelected(int arg0) { } @Override public void onPageScrolled(int…
Droidman
  • 11,485
  • 17
  • 93
  • 141
4
votes
2 answers

listview having viewpager in each list item in android

I'm in need of your help while setting the data to listitems in a listview. In my listview each item is having a ViewPager and each viewpager should have different data. I'm not getting how to set different data to each viewpager. Actually based on…
Ajay
  • 51
  • 4
4
votes
1 answer

Set currentItem of a viewPager from a fragment

I am developing a Project in which I am using View Pager on one screen, It only has two pages. On the first one i have a simple form with some widgets. On the second page I have listview with some products name and quantitys. Is possible to change…
Henry1988
  • 83
  • 1
  • 1
  • 8
4
votes
1 answer

SupportMapFragment with ViewPager: Cannot move camera or change map settings

I have a problem with the SupportMapFragment and moving the camera to a location on the map. public class MapPositionFragment extends SupportMapFragment implements LocationListener{ private GoogleMap map = null; private Button lockButton =…
4
votes
2 answers

Viewpager and Sherlock Fragments. How to do somethng inside fragment from FragmentActivity?

I have a parent SherlockFragmentActivity class that contains ViewPager with 4 Fragments inside. One of them extends from SherlockListFragment and I want to scroll it to top by click on it's tab. MainActivity class: public class MainActivity…
4
votes
0 answers

Android Fragment Pager and Custom Page Indicator( ViewPagerIndicator created by Jake Wharton)

I am using ViewPageIndicator for developing a pager view with its indicator MyCode Activity public class Pager extends Activity{ private MyPagerAdapter mAdapter; private ViewPager mPager; private CirclePageIndicator…
edwin
  • 7,985
  • 10
  • 51
  • 82
4
votes
1 answer

view pager not smooth when embedded within scrollview?

I have requirement like play store app where there is view pager with images and videos and scroll to view details .Unfortunately when user scrolls the scroll is jumpy but if i remove the scrollview the view pager works perfectly fine . The…
Preethi
  • 2,112
  • 7
  • 38
  • 54
4
votes
1 answer

Android ViewPager automatically focuses WebView

I have an android app with ViewPager from the support library. Inside fragment's view, I have some Views on top and a WebView with some HTML contents below them. First page is loaded properly, but when switching between pages, every next page…
amik
  • 5,613
  • 3
  • 37
  • 62
4
votes
3 answers

Cover Flow effect using ViewPager

I want to have coverflow effect using ViewPager. I found CoverFlowWidget since its extending Gallery widget which is deprecated its better to go on with ViewPager instead.Any idea how can I achieve this?
Manoj
  • 2,799
  • 5
  • 30
  • 49
4
votes
3 answers

Android, How to mix ActionBar.Tab + View Pager + ListFragment

I've been trying to test how to mix all these things together and I'm having problems!! I just want an app with three tabs using the ActionBar.Tab. For example, this tabs can be movies genres Action, Adventure and Animation, the user can swipe…
4
votes
1 answer

Google Currents like page-by-page reading style

I'm learning how to implement one-page reading style, like in Google Currents, for my app. The contents(text) are adjusted based on the screen size and there is no scroll, no zoom. The overflowed text are in the next page. (I knew that it is using…
Swan
  • 886
  • 1
  • 9
  • 23
4
votes
0 answers

ViewPager containing SurfaceView dows not show other fragments while swiping away from SurfaceView

My setup is the following. I have an Activity with 3 Fragments in a ViewPager. The first and the last Fragment are inflated via xml whereas the center Fragment is a Class derived directly from SurfaceView. This Class has its own rendering…
4
votes
1 answer

How to display only cache memory images in ViewPager using Universal Image Loader Android?

I want to display only those images that were loaded into cache memory once we downloaded from url using Universal Image Loader Example I have 15 URLS to download image and display inViewPager, but out of them only 5 were downloaded and i closed the…
moDev
  • 5,248
  • 4
  • 33
  • 63
4
votes
1 answer

ActionBar tabs with ViewPager and Frame Layout

I was wanting to use ActionBar tabs and ViewPager to implement swiping between tabs. I have successfully used the example here: http://developer.android.com/reference/android/support/v4/view/ViewPager.html However, I also wanted to add a Frame…
vabanagas
  • 811
  • 7
  • 6