horizontal-scrolling refers to a user-interface capability to view offscreen content which is wider than the screen by using on-screen controls or an input device to change the left/right offset
Questions tagged [horizontal-scrolling]
1519 questions
220
votes
19 answers
Horizontal ListView in Android?
Is it possible to make the ListView horizontally? I have done this using a gallery view, but the selected item comes to the center of the screen automatically. I don't want the selected item at the same spot I clicked. How can I rectify this…

Praveen
- 90,477
- 74
- 177
- 219
167
votes
17 answers
How do I remove the horizontal scrollbar in a div?
When I set overflow: scroll, I get horizontal and vertical scrollbars.
Is there a way to remove the horizontal scrollbar in a div?

Ravi
- 4,015
- 7
- 30
- 35
110
votes
7 answers
RecyclerView horizontal scroll snap in center
I'm trying to make a carousel-like view here using RecyclerView, I want the item to snap in the middle of the screen when scrolling, one item at a time. I've tried using recyclerView.setScrollingTouchSlop(RecyclerView.TOUCH_SLOP_PAGING);
but the…

Ahmed Awad
- 1,787
- 3
- 16
- 22
80
votes
10 answers
Horizontal ListView inside a Vertical ScrollView in Flutter
I am trying to achieve a very common behavior nowadays which is to have a horizontal List within another widget that is at the same time scrollable. Think something like the home screen of the IMDb app:
So I want to have a widget that scrolls…

Javier Mendonça
- 1,970
- 1
- 17
- 25
74
votes
2 answers
Synchronise vertical/horizontal scrolling in split view
Is there a way in VS Code to synchronise vertical or horizontal scrolling in splitted view ?
Like in Notepad++ for instance :
From buttons:
From View menu:

Michaël Polla
- 3,511
- 3
- 23
- 37
73
votes
14 answers
Android Horizontal RecyclerView scroll Direction
I made a Horizontal RecyclerView and it works fine(thanks to this) but the direction of scroll and data are expand from left to right; then How can I change the RecyclerView scroll direction like in the picture below?
My…

Hamid Goodarzi
- 1,364
- 2
- 13
- 22
64
votes
11 answers
Get center visible item of RecycleView when scrolling
This is what I want:
As image above, I want to draw a center line on RecycleView, then get the center item when scrolling (as well as move left or right)
Here is my try to draw a horizontal RecycleView:
HorizontalAdapter adapter = new…

ductran
- 10,043
- 19
- 82
- 165
62
votes
4 answers
CSS horizontal scroll
I'm trying to create a
with a series of photos which are horizontally scrollable only.
It should look something like this LINK;
However the above is only achieved by specifying a width for the
which contains the photos (so they don't…

Simon R
- 3,732
- 4
- 31
- 39
61
votes
4 answers
How to make Twitter Bootstrap's blocks scroll horizontally?
Per the examples https://getbootstrap.com/docs/4.3/content/code/#code-blocks, bootstrap only supports vertically-scrollable and word-wrapped
blocks out of the box. How do I make it so that I have horizontally-scrollable, unwrapped code blocks…

Suan
- 34,563
- 13
- 47
- 61
60
votes
10 answers
HorizontalScrollView: auto-scroll to end when new Views are added?
I have a HorizontalScrollView containing a LinearLayout. On screen I have a Button that will add new Views to the LinearLayout at runtime, and I'd like the scroll view to scroll to the end of the list when a new View is added.
I almost have it…

Rick Barkhouse
- 1,186
- 2
- 10
- 15
54
votes
6 answers
Vertical Scrollbar leads to horizontal scrollbar
My CSS looks like this:
div.SOMECLASS {
position: absolute;
max-height: 300px
height: auto;
width: auto;
overflow: auto;
...
}
The div height and width scale automatically. The height has a fixed maximum though: as soon as this value is…

fgysin
- 11,329
- 13
- 61
- 94
50
votes
7 answers
Android - horizontal scrolling of multiple viewable items
EDIT: See my own answer for easy solution
IMPORTANT: Bounty is offered for clear way to modify ViewPager to satisfy the scenario outlined below. Please do not offer HorizontalScrollView - I need full Fragment lifecycle scenario covered
I need to…

Bostone
- 36,858
- 39
- 167
- 227
46
votes
4 answers
How to make the horizontal scrollbar visible in DT::datatable
Using R shiny & DT package, I am creating certain tables. The number of columns vary as per user input & is not fixed. I have included the following code snippet to include a horizontal scrollbar so that when the number of columns is large, the user…

Komal Rathi
- 4,164
- 13
- 60
- 98
36
votes
4 answers
Horizontally scrollable tabs focus on center with snap in flutter
Here I want to ask or can I make a tutorial like tabs, focusing center but the left and right tabs are 30% transparent like this, thank you!

Ismail Interface
- 523
- 2
- 7
- 10
34
votes
3 answers
List of horizontal list in Flutter
I have followed this tutorial and fully implemented a horizontally scrolling list.
Now, what I would like to do is to create a vertical list where each row is a horizontal list.
I tried different approaches, but I keep thinking that it should be…

Andrea Grippi
- 1,339
- 4
- 15
- 27