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
315
votes
15 answers

How to always show scrollbar

The scrollbar in my scrollview is only visible when I start scrolling. How can I always show it?
jul
  • 36,404
  • 64
  • 191
  • 318
271
votes
8 answers

How to use ScrollView in Android?

I have an XML layout file, but the text is more than fits into the screen size. What do I need to do in order to make a ScrollView?
Chatar Veer Suthar
  • 15,541
  • 26
  • 90
  • 154
248
votes
27 answers

Is there a way to programmatically scroll a scroll view to a specific edit text?

I have a very long activity with a scrollview. It is a form with various fields that the user must fill in. I have a checkbox half way down my form, and when the user checks it I want to scroll to a specific part of the view. Is there any way to…
195
votes
15 answers

Android: how to check if a View inside of ScrollView is visible?

I have a ScrollView which holds a series of Views. I would like to be able to determine if a view is currently visible (if any part of it is currently displayed by the ScrollView). I would expect the below code to do this, surprisingly it does…
ab11
  • 19,770
  • 42
  • 120
  • 207
179
votes
18 answers

How to scroll to top of long ScrollView layout?

For part of my app, the user is presented with a list of names and is asked to group them as they see fit. (Note, the ListView code was copied verbatim from the Android Views tutorial. I haven't yet customized it to my needs, I'm just trying to…
Glenn
  • 3,338
  • 3
  • 20
  • 14
165
votes
2 answers

View inside ScrollView doesn't take all place

I have a RelativeLayout inside a ScrollView. My RelativeLayout has android:layout_height="match_parent" but the view doesn't take the entire size, it's like a wrap_content. Is there a way to have the real fill_parent/match_parent behavior ? My…
g123k
  • 3,748
  • 6
  • 42
  • 45
164
votes
27 answers

ListView inside ScrollView is not scrolling on Android

I am having trouble with a scrolling ListView inside a ScrollView. I have an Activity which has some EditTexts in the top part and then a tab host with two tabs which have one ListView each. When the EditText views are focused, the soft keyboard…
Ashwani K
  • 7,880
  • 19
  • 63
  • 102
161
votes
19 answers

Can I scroll a ScrollView programmatically in Android?

Is there any way to scroll a ScrollView programmatically to a certain position? I have created dynamic TableLayout which is placed in a ScrollView. So I want that on a specific action (like clicking a Button, etc.) the particular row should scroll…
Arun Badole
  • 10,977
  • 19
  • 67
  • 96
160
votes
10 answers

Can I have onScrollListener for a ScrollView?

I am using a HorizontalScrollView in a layout and I need to identify the user have reached the start and end point of the scroll. For ListView I have tried a the onScrollListener and it is possible to find the start and end point of scroll. I tried…
arnp
  • 3,178
  • 6
  • 26
  • 43
156
votes
12 answers

Scrollview vertical and horizontal in android

I'm really tired looking for a solution for vertical and horizontal Scrollview. I read that there are not any views/layouts in the framework which implement this feature, but I need something like this: I need to define a layout within other, the…
Kronos
  • 7,541
  • 5
  • 22
  • 11
145
votes
11 answers

Call removeView() on the child's parent first

First a little background: I have a layout inside a scrollview. At first, when the user scrolls on the screen, the scrollview scrolls. However, after a certain amount of scroll, I was to disable the scroll on the scroll view the move the "scroll…
kasgoku
  • 5,057
  • 5
  • 20
  • 20
125
votes
24 answers

How do I scroll the UIScrollView when the keyboard appears?

I'm having trouble with my code. I'm trying to move the UIScrollView when I'm editing an UITextField that should be hidden by the keyboard pop. I'm moving the main frame right now because I don't know how to 'scroll up' in the code. So, I did a…
frénésie
  • 1,716
  • 3
  • 16
  • 14
111
votes
9 answers

How to scroll page in flutter

My code for a page is like this. i need to scroll part below appbar. @override Widget build(BuildContext context) { return new Scaffold( appBar: new AppBar(... ), body: new Stack( children: [ new…
Vineeth Mohan
  • 2,584
  • 4
  • 17
  • 31
108
votes
7 answers

no gravity for scrollview. how to make content inside scrollview as center

I want the content inside the scrollView as center.
Padma Kumar
  • 19,893
  • 17
  • 73
  • 130
105
votes
6 answers

Remove scroll bar track from ScrollView in Android

My Android app has a main WebView (HTML loaded from a local resource) which I want to use the entire width of the screen and be able to make (vertically) scrollable. So I've wrapped the WebView in a ScrollView in my layout XML, but no matter what I…
Mick Byrne
  • 14,394
  • 16
  • 76
  • 91
1
2 3
99 100