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
54
votes
7 answers

ScrollView doesn't scroll to the bottom

I have a certain problem in my Activity. The ScrollView doesn't scroll down to the bottom. I have a screenshot for you. If you look at the scrollbar of the scrollView, you can see that it's not scrolling down to the bottom. Here's my XML layout of…
medphys
  • 1,157
  • 3
  • 10
  • 15
52
votes
22 answers

Stop ScrollView from auto-scrolling to an EditText

Seems to be a common problem without a great solution that I have found. Goal is to stop a ScrollView from auto-scrolling to an EditText (or any view for that matter) that has focus. You have a bunch of views (Buttons, TextViews, etc) in an…
Fraggle
  • 8,607
  • 7
  • 54
  • 86
52
votes
6 answers

SwiftUI automatically scroll to bottom in ScrollView (Bottom first)

My problem is that i have (in SwiftUI) a ScrollView with an foreach inside. Know when the foreach loads all of my entries i want that the last entry is focused. I did some google research, but i didn't find any answer. ScrollView { VStack { …
Leahpar
  • 583
  • 1
  • 4
  • 12
52
votes
5 answers

how to change color of the actual scroll in ScrollView android?

I'm wondering if it's possible to change the color of the ScrollView. I'm not referring to the background color or the edges. I attached a print screen of the bar I'm referring. For me, it's kind of transparnt. Here's how I defined it in the xml:…
dusm
  • 1,207
  • 4
  • 18
  • 24
52
votes
4 answers

MonoDroid: Error when calling constructor of custom view - TwoDScrollView

I am building an Android application that uses the custom-built TwoDScrollView found here: http://blog.gorges.us/2010/06/android-two-dimensional-scrollview/ This same class can be found referenced at several other websites, and others on Stack…
51
votes
6 answers

Stop ScrollView from setting focus on EditText

Android's ScrollView (when scrolled or fling'd) likes to set the focus of an EditText when it's one of it's children. It happens when you scroll and then release. Is there anyway to stop this behavior? I've tried nearly everything I can think of and…
user123321
  • 12,593
  • 11
  • 52
  • 63
51
votes
16 answers

Scrollview inside constraint layout does not scroll to the bottom of the parent constraint

I have a form which has around 12/13 fields. I used a Scrollview inside a constraint layout. Below is the hierarchy of the XML layout. The problem is, it doesn't scroll to the bottom instead scrolls only to the first initial 10 views. The last 3…
50
votes
2 answers

Change scrollbar color in Android

Is it possible to change the color or appearance of the scrollbar in a ScrollView or ListView?
pgsandstrom
  • 14,361
  • 13
  • 70
  • 104
49
votes
4 answers

making the edge of the scrollview fade when scrolling in android

I have a ScrollView with an image in it. I want the edges of the ScrollView to make a fade effect when I scroll the image. I'm not talking about the effect you get when you get to the end of the scroll. I want the fade to always exist. That's what i…
roiberg
  • 13,629
  • 12
  • 60
  • 91
48
votes
7 answers

How to make a Scroll Listener for WebView in Android

How to implement the Scroll Listener for WebView in Android i tried this but its not calling my Log.i on scrolling the webview. package com.example.webview.full.width; import android.content.Context; import android.util.AttributeSet; import…
Qadir Hussain
  • 8,721
  • 13
  • 89
  • 124
47
votes
8 answers

Android WebView inside ScrollView scrolls only scrollview

In my app I have a ScrollView that contains some linearviews, some textviews and One Webview, then other linear layouts etc. The problem is that the WebView does not scroll. The Scroll listens only on ScrollView. Any suggestions??
Panos
  • 7,227
  • 13
  • 60
  • 95
46
votes
5 answers

OnScreen keyboard opens automatically when Activity starts

When my Activity with a ScrollView layout and EditTexts starts, the EditTexts get focus and the Android OnScreen keyboard opens. How I can avoid that? When I was using LinearLayout and RelativeLayout without the ScrollView it doesn't happen. I've…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
42
votes
5 answers

Android ScrollView and buttons at bottom of the screen

I want to implement this: A ScrollView that contains many elements (ImageViews, TextViews, EditTexts etc) and then after the ScrollView some buttons (which are custom ImageViews) that appear always exactly at the bottom of the screen. If I use the…
george
  • 1,386
  • 5
  • 22
  • 38
42
votes
2 answers

Android: Total height of ScrollView

I have a custom ScrollView (extended android.widget.ScrollView) which I use in my layout. I want to measure the total height of the contents of this scrollview. getHeight() and getMeasuredHeight() don't give me correct values (too high…
Erik
  • 5,681
  • 8
  • 31
  • 32
42
votes
7 answers

How to set the color of an Android ScrollView fading edge?

I have an Android scrollview with a white background. The fading edge is a white translucent gradient. I would like to change it be black instead of white. I have a ListView in the same project with a white background that has a black fading edge by…
Andrew Shooner
  • 1,170
  • 3
  • 11
  • 16