Questions tagged [scrollview]

Be sure to use a **platform specific** tag. Use this tag only for the most general questions about scroll views on all platforms. A scroll view is a view that can be scrolled by the user, inside a containing area. One of the basics of all modern UX.

A view that can be scrolled by the user, inside a containing area.

It is essential to use for Android's ScrollView. It is essential to use for the iOS ScrollView.

6948 questions
40
votes
2 answers

SwiftUI - Vertical Centering Content inside Scrollview

i'm trying to code a simple login page on my app. I started using SwiftUI on my newlly updated Mac OS Catalina. The Apple documentation is still lacking a lot. I need to center a VStack vertically on a Scrollview ocupying the whole page with a…
nunoh123
  • 1,087
  • 1
  • 10
  • 17
40
votes
8 answers

ScrollView cuts off the top and leaves space at the bottom

When I launch the emulator and enter the screen which uses this code it shows most of the text information but cuts off the top of the screen (cant scroll up) but leaves a bit of space at the bottom. Here is the code;
Maynn
  • 515
  • 1
  • 6
  • 10
39
votes
1 answer

Android: Detecting When ScrollView Hits Bottom

Possible Duplicate: How to trigger an event when scrollView reach the bottom with Android? I have been trying for an hour or so to detect when my scrollView gets to the bottom of the screen. Due to the various screen sizes and what not involved…
Peacecraft
  • 443
  • 1
  • 5
  • 6
39
votes
8 answers

Flutter: ListView not scrollable, not bouncing

I have the following example (tested on an iPhone X, iOS 11): import 'package:flutter/material.dart'; void main() => runApp(new MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new…
Renato Stauffer
  • 738
  • 2
  • 14
  • 30
38
votes
4 answers

Reduce speed of smooth scroll in scroll view

I have a scroll View. I performed smooth-scroll.using smoothScrollBy().It all works fine, but I want to change the duration of the smooth-scroll. Smooth-scroll happens very fast and user is not understanding what happened.Please help me reduce…
ShineDown
  • 1,881
  • 3
  • 21
  • 29
38
votes
11 answers

Center content in scroll view

I want to center my LinearLayout within ScrollView. When LinearLayout's height is small it's centered alright (see image #1) but when LinearLayout's height is bigger than the screen's height then it behaves strange. I cannot see the top of…
Egis
  • 5,081
  • 5
  • 39
  • 61
37
votes
1 answer

Flutter sliver container

I'm new to flutter and I'm not able to achieve the layout I want. I have one sliverAppBar with 3 tabs. The content of one of the tabs has to be a ScrollView compound by one container with fixed size(with an image as background) and a ListView. I've…
niegus
  • 1,698
  • 4
  • 22
  • 34
37
votes
6 answers

How to make sticky section headers (like iOS) in Android?

My specific question is: How I can achieve an effect like this: http://youtu.be/EJm7subFbQI The bounce effect is not important, but i need the "sticky" effect for the headers. Where do I start?, In what can I base me? I need something that I can…
Daniel Valencia
  • 677
  • 1
  • 8
  • 12
36
votes
7 answers

Disable scrolling of a ListView contained within a ScrollView

I want to show a Profile screen for my users. It must have three views (2 Buttons and a ImageView) and a ListView to show the content made by that user. However, I don't want the ListView to scroll. Instead, I want it to be as big as needed, and to…
Charlie-Blake
  • 10,832
  • 13
  • 55
  • 90
35
votes
3 answers

Tabs with FlatLists inside ScrollView - like Instagram or Twitter profile pages

I would like to have a set of tabs that each have a FlatList inside a ScrollView. This is similar to the layout of Instagram or Twitter. I am aware that there are some issues with having a FlatList inside a ScrollView and getting onEndReached to be…
Alex Chin
  • 1,642
  • 15
  • 28
35
votes
4 answers

Is there a way to disable/edit the fading that a list view has at its edges?

Scrollable views such as the ListView have a fade out of the content along the edges where there is more content in that direction. How can I turn this fading off? I know you can change the cacheColorHint as discussed here:…
cottonBallPaws
  • 21,220
  • 37
  • 123
  • 171
35
votes
4 answers

Scrolling with Multiple ListViews for Android

I'm completely stumped on this one. I have three different lists that need to be displayed on the screen. It's completely possible that the lists will extend past the bottom edge of the screen, so I would need scrolling. I've tried using a…
Andrew Burgess
  • 5,300
  • 5
  • 30
  • 37
34
votes
3 answers

Gesture detection and ScrollView issue

I'm trying to create a layout with a ViewFlipper containing ScrollViews. The idea is to detect horizontal swipes to move to previous/next ScrollView. Moreover, the ScrollView contains another ViewFlipper containing ImageView with a vertical swipe…
jul
  • 36,404
  • 64
  • 191
  • 318
34
votes
11 answers

SwiftUI: Make ScrollView scrollable only if it exceeds the height of the screen

Currently I have a view that looks like this. struct StatsView: View { var body: some View { ScrollView { Text("Test1") Text("Test2") Text("Test3") } } } This renders a view that contains…
ravelinx
  • 1,557
  • 4
  • 18
  • 26
34
votes
3 answers

How can I change the OverScroll color in Android 2.3.1?

Since Android 2.3.1 there is a new feature for ScrollViews and Lists called OverScroll. With android:overScrollMode="never" I can turn it off, but if i don't wan't to turn it off how can I change the Color of it?
alekz
  • 436
  • 1
  • 4
  • 5