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
2 answers

Swipe with Activity:- Resource Not Found Exception

I am trying to swipe some part of the screen. I use PageAdapter for this. In swiping part I have three activity 1. ShowMap 2. ShowAddress 3. ShowContact I am trying to getting id of layout of ShowMap Activity but it's showing resource not found…
Sandip Armal Patil
  • 6,241
  • 21
  • 93
  • 160
0
votes
1 answer

ListFragment clicks being answered by wrong fragment

I have a series of ListFragments each displaying a different SQLite table or view. I switch between them with swipable tab layouts. I have two different swipable layouts that load into the same activity, depending on the Intent arguments which are…
-1
votes
1 answer

FragmentPagerAdapter not working inside ViewPager

I 'm using FragmentPagerAdapter to adapt fragments inside viewPager. I wrote code and It's working correctly ,Here is a my code public class SPStoryDetailsAdapter extends FragmentPagerAdapter { Context context; public…
-1
votes
1 answer

How can I add OnClickListener to PagerAdapter

I'm using PagerAdaper for image slide in my app. I want to add listener on it mean if the image show when i click on it it say something. let suppose i have an image of apple now i want to add listener on it when i click on it it say apple. i want…
-1
votes
3 answers

Fragment Pager Adapter only displaying last fragment created

I have a similar problem to the one described here: ViewPager only displaying last fragment, but after attempting the solution there I'm still having the same issue. I have an app with a TabLayout, which displays 3 fragments. The 3 fragments have…
-1
votes
1 answer

Inflate ListView in a custom PagerAdapter makes setAdapter call ineffective

I have tried to create a custom PagerAdapter since I want to show some pages, where each page contains a ListView, that should be initialized by the pager adapter constructor MyPagerAdapter, that receives the Activity where the ViewPager is used,…
-1
votes
1 answer

Pass ViewPager object to different activity

I am new to android development,So I have created dynamic views using ViewPager and PagerAdapter. I am handling this logic in my ViewPagerHandler class. This starts in Activity A. Now I want to add new views displayed in Activity A from a different…
mBlaze
  • 401
  • 1
  • 5
  • 7
-1
votes
2 answers

PagerAdapter change TextView when swiping

I'm using a PagerAdapter to swipe through a couple of ImageViews which works perfectly fine. I have a bunch of people in the gallery and I wish to add an individual name/description (id: speaker_name) to them. All I got to work is the same…
BCuracao
  • 25
  • 6
-1
votes
1 answer

Clickable links with PagerAdapter

I have some text displayed with FragmentPagerAdapter. This text contains some links which I need to have clickable. There is a solution using OnTouchEvent with a View, but how do I get the coordinates then? Or is there a better solution for…
Bord81
  • 525
  • 2
  • 8
  • 23
-1
votes
4 answers

Fragments not being loaded using PagerAdapter [ANDROID]

In my app i am using pager adapter to load 2 fragments, the fragments are not getting loaded and view pager remains null. Where i am going wrong? Any help will be appreciated Here is my code I am setting this adapter to my view pager from…
-1
votes
2 answers

Android:Change "screens" when swiping

I want to make something like this in my android app With 2 or 3 activities or more. I don't want to use visible tabs with names. I just want when i slide through a new activity with its own layout appear, a totally different screen. I've read…
tur1ng
  • 1,082
  • 1
  • 10
  • 24
-1
votes
1 answer

TextView Slider with Pagination in Android

i need to Achieve something like this in android. i don't know how can i achieve this in android. i have already checked this but it is a full screen slider with images and all. i just need a simple text slider with several slides in the middle of…
Vix Hunk
  • 303
  • 4
  • 17
-1
votes
1 answer

How do I add a searchbar on an ImageButton, which when clicked expands horizontally to show the textbox?

UI The top where it says Artists, Songs is a PagerTitleStrip. And next to it is an ImageButton with a search icon. Artists, Songs are implemented using fragments. What I want to achieve is that when I click the search icon, the search icon should…
-1
votes
1 answer

ViewPager not showing the views

I created a view pager without the fragments. This is my adapter class public class CustomPagerAdapter extends PagerAdapter { private ArrayList thingsToFocusArrayList; private ImageLoader imageLoader; private ImageLoadingListener…
WISHY
  • 11,067
  • 25
  • 105
  • 197
-1
votes
2 answers

Android Swipe Views

I'm trying to make a navigation in my app and I can't understand how to implement the navigation tabs in my app. I've been following Creating Swipe Views with Tabs As a beginner I couldn't understand how to use the FragmentStatePagerAdapter and…
TheUnreal
  • 23,434
  • 46
  • 157
  • 277
1 2 3
28
29