Questions tagged [android-pageradapter]

A base class providing the Adapter used to populate pages inside of a ViewPager.

Base class providing the Adapter used to populate pages inside of a ViewPager. You will most likely want to use a more specific implementation of this, such as FragmentPagerAdapter or FragmentStatePagerAdapter.

More information can be found in the documentation of the class.

Tag Usage:

427 questions
0
votes
1 answer

Weird Zoom Behavior Using TouchImageView with Specific Phone

Not sure what is going on here but I have implemented the Zoom features on an image-gallery in a ViewPager, ImagePagerAdapter using TouchImageView. On all my other phones and tablets the code works perfect, for zooming and page flipping. On 3 of…
0
votes
1 answer

ImagePagerAdapter - The constructor is never used locally / The value of the field is not used

I'm having a bit of trouble implementing my ImagePagerAdapter - I believe I have not implemented it correctly due to the following two warnings: The constructor Home.ImagePagerAdapter(Activity, int[], String[]) is never used locally & The value…
0
votes
2 answers

Java / Android - Cannot Reach Breakpoint

I'm attempting to implement a viewPager in my source code and I set a breakpoint at the line: if (position > oldPos) { yet for some reason when swiping the viewPager left and right I never seem to reach the breakpoint in the debugger. I've looked…
0
votes
1 answer

ViewPager/PagerAdapter: Changing The Value of a String

I have a youtube Playlist: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.home); final ActionBar actionBar = getActionBar(); ViewPager…
0
votes
1 answer

Android / Java - Updating listArray to call View in adapter

I'm attempting to implement a viewPager which will allow me to change the Youtube playlist (String PLAYLIST) depending on the position of the ViewPager. I was told in another StackOverflow post I need to: "update the listArray prior to calling…
0
votes
1 answer

Use a ViewPager / PagerAdapter to change a string

I have a JSON request which gets a response from YouTube: @Override protected Void doInBackground(Void... arg0) { try { HttpClient client = new DefaultHttpClient(); HttpUriRequest request = new…
0
votes
1 answer

Fragments controlled by a ViewPager in a Fragment do not appear

The top activity in my application contains a fixed tab bar with a custom ViewPager (disabled swipe gestures) and a FragmentPagerAdapter. This tab bar gives access to three different Fragments and in the first Fragment I want to be able to swipe…
0
votes
0 answers

No data in first page in pager adapter

I create adapter when click on Item in activity. The first page is empty. When I slide it over (to the third page content there is present) and come back content is there. public void showItem(){ mSwipeAdapter = new…
Vadym
  • 543
  • 5
  • 16
0
votes
1 answer

View's Visibity is getting set to GONE, but still View appears on the screen inside PagerAdapter

Please help me with this guys, i am stuck up I am Working on a viewpager, where i require my linearlayout change it's visibilty on a button click, but the visibilty property seems to but not working. Here is my code public class MyPagerAdapter…
hemant
  • 564
  • 2
  • 13
  • 37
0
votes
2 answers

Sliding Drawer with ViewPager causing blank fragments

I'm using an Activity with a Drawer Layout, which I need for switching between different Fragments. One of these Fragments is making use of a ViewPager with a FragmentStateViewPagerAdapter, which I need to use for implementing the Swipe Views…
0
votes
2 answers

how to get item number in view pager?

how to get current item no in viewpager. @Override public Object instantiateItem(ViewGroup paramView, int paramInt) { int itemno1= getItem(pager.getCurrentItem()); int itemno2= getItem(paramInt); …
Asthme
  • 5,163
  • 6
  • 47
  • 65
0
votes
1 answer

Android ViewPager activity

After some extensive research on the topic, I've reached an impasse. I'm trying to implement the ViewPager from Android's 'Using ViewPager for Screen Slides' tutorial to have different text on each page, like you are swiping through pages in a…
FugueWeb
  • 744
  • 1
  • 9
  • 19
0
votes
1 answer

Fragment Pager Adapter and Pager View loading next fragment in background

i am using Fragment Pager Adapter and PagerView to create swipe tab. But facing some problem. Here is my:-ViewPagerAdapter Its showing first fragment and also showing second fragment dialog box(loading data in background). When i swipe to second …
0
votes
1 answer

Adjust RelativeLayout wrapper to size of ImageView in a PagerAdapter

I have an xml file that represents a slide that gets loaded by a custom PagerAdapter:
jwBurnside
  • 849
  • 4
  • 31
  • 66
0
votes
3 answers

How do I keep track of an edittext field across PagerAdapter slides?

I'm using a fairly simple custom pager adapter in Android, and I'd like to keep track of the contents of the edittext fields so that each new slide retains the same text if entered. Anyone have any insight on this? I'm guessing I'll need to set up a…
jwBurnside
  • 849
  • 4
  • 31
  • 66