Questions tagged [pager]
481 questions
278
votes
18 answers
Replace Fragment inside a ViewPager
I'm trying to use Fragment with a ViewPager using the FragmentPagerAdapter.
What I'm looking for to achieve is to replace a fragment, positioned on the first page of the ViewPager, with another one.
The pager is composed of two pages. The first one…

Noodles
- 3,263
- 4
- 19
- 22
171
votes
8 answers
PostgreSQL disable more output
I am running a script on my PostgreSQL server:
psql db -f sql.sql
from bash or in a cron script.
It keeps trying to paginate the output with more or less.
How do I disable result pagination in psql?
All I want to do is change the data, I don't…

Chris
- 1,841
- 2
- 12
- 8
50
votes
11 answers
Get focused View from ViewPager
i use the ViewPager for switching views with left/right swipe.
The ViewPager needs an Adapter, so I've built this one:
public class ListViewPagerAdapter extends PagerAdapter {
protected static final String TAG = "ListViewPagerAdapter";
protected…

Superroot
- 661
- 1
- 6
- 4
42
votes
2 answers
customize pager in psql
When I use psql, the command line tool of PostgreSQL, in interactive mode, it lists data as paginated output.
However, because I use psql in a terminal application which can handle long outputs itself, I rather would like to get the whole output…

halloleo
- 9,216
- 13
- 64
- 122
40
votes
5 answers
ViewPager show next and before item preview on screen
I want to show viewpager next and before page preview in screen. Before and next page show deep in screen and slide next page with deep animation.
You can look this image
How can i do it?

msevgi
- 4,828
- 2
- 24
- 30
35
votes
2 answers
Android ViewPager with previous and next pages visible?
I am currently building a horizontal gallery of videos.
I'd like to make something like that with only one video centered and part of previous and next videos:
I first opted for a Gallery but its limitations made me look for something else. I'd…

Romain Piel
- 11,017
- 15
- 71
- 106
32
votes
6 answers
Android PagerAdapter, get current position
I want to get the current position of the visible view of my PagerAdapter
I didn't see an obvious function like getPosition() and I want one.
I want to add an object into its arraylist at that position, but I need to know it first

CQM
- 42,592
- 75
- 224
- 366
32
votes
4 answers
Turning off the pager in git for the stash command only
I generally like the use of the pager in git, but for git stash the pager annoys me. When calling git stash list, I don't want to be shown the three lines of output in the pager -- it forces me to press q just to make the output unavailable again…

Sven Marnach
- 574,206
- 118
- 941
- 841
23
votes
3 answers
PagerTabStrip and PagerTitleStrip difference?
When should we use pagerTabStrip and when should we go for pagerTitleStrip???
What does the word interactive indicator and non-interactive indicator mean actually? Can you please explain me the difference and also can you please tell me if there is…

Ajitha
- 717
- 1
- 7
- 30
20
votes
8 answers
Updating jQuery Tablesorter plugin after removing a row from DOM
I have some code at the moment that hides a row that is deleted and then removes it using the .remove() function.
However I'm having difficulty is making it remain "deleted" as every time I refresh the table sorted pager plugin or the filter plugin…

Richard Thompson
- 201
- 1
- 2
- 3
19
votes
4 answers
How to create pager in Yii2?
I was searching how to create pager in Yii2 using LinkPage widget.
Is there any example? I am new in Yii, so any help would be good.

newYii
- 193
- 1
- 1
- 4
18
votes
5 answers
When I use the "git log" command it is no longer implicitly piping through "less"
Before, I could just type
git log
Now, I have to type:
git log | less
to get the same effect. I haven't (intentionally) changed any parameters. I've checked my global config: "~/.gitconfig" and my project Git config ".git/config" but I can't see…

quinn
- 5,508
- 10
- 34
- 54
17
votes
4 answers
How to print stdout excerpt in IPython
In a Linux terminal, when the output of one command is too long to read in one page, I can do this:
cat file | less
so that I can read and scroll up and down the output from the cat file.
How can I do this in IPython?
For example, I tried this and…

McBear Holden
- 5,741
- 7
- 33
- 55
15
votes
6 answers
MySQL the command line and pagers
I cant find anything about this from searching here.
I use mysql on the command line at work and I work with fairly large tables so I set the mysql pager allowing a more readable result if I run a query, that returns 1000's of results. I use the…

martynthewolf
- 1,718
- 2
- 11
- 22
14
votes
3 answers
How do I use a pager for long git add --patch hunks?
When I interactively add diff hunks with git add --patch, I sometimes get hunks which are longer than the screen, but no ability to use less to page through the hunks.
This is strange to me as I have already set:
[core]
pager = less -FRX…

Tom Hale
- 40,825
- 36
- 187
- 242