Questions tagged [android-scroll]

195 questions
3
votes
0 answers

Prevent Flicker When Screen Loads and scrollTo a specific position

Goal - I want to scrollTo(0,60) once a webview loads a webpage. At a minimum I want to prevent the flicker that I see when the webpage finishes loading. Flicker - As a webview loads a url (for example wiki) a user can scroll through it to read text.…
LEO
  • 2,572
  • 1
  • 26
  • 31
2
votes
2 answers

How to scroll Jetpack Compose screen that overflows its contents?

I have an Add Shopping List item Jetpack Compose screen which contains several TextField inputs and an image container at the bottom. The screen overflows at the bottom and is cut off. How can I scroll the screen?
2
votes
1 answer

Overscroll effect is not displayed correctly in NestedScrollView with RecyclerView inside

I have NestedScrollView that contains some views and RecyclerView. But when I scroll RecyclerView, the overscroll effect is only shown in it. How do I display it in NestedScrollView? I can disable overscroll effect in RecyclerView using…
2
votes
2 answers

Keep focus on first item of the list and scroll the List

I am developing an Android TV application and showing the items on the list. When I scroll the list focus moving from the current item to the next, I want the keep focus constantly on the first item and scroll the whole list from the same selected…
2
votes
1 answer

Android: unable to hide appbar on scrolling

I am trying hide appbar when scrolling but it does not work . This is the main layout:
Cyrus the Great
  • 5,145
  • 5
  • 68
  • 149
2
votes
0 answers

Efficient WebView resizing

I've implemented floating Toolbar in my app (hides with scroll down, shows on up) and now I see some flickering views inside WebView, to be precise these sticked to the bottom. I've noticed that this happens when I'm resizing WebView due to Toolbar…
2
votes
2 answers

How to scroll ImageView horizontal in Android?

In my application I want show image from server into ImageView. My imageView fill the all of screen and for this I use android:scaleType="centerCrop" . But when use centerCrop not show all of the image detail? I want horizontal scroll on imageView…
Dear User
  • 93
  • 8
2
votes
2 answers

Toolbar setOnScrollChangeListener() for api level 19

Is there any alternate listener which I can use to get scrolling amount in y axis? I am using android.support.v7.widget.Toolbar but it doesn't have backward compatibility to API level 19.
2
votes
4 answers

RecyclerView pagination not working

I am trying to load more items when scroll down after last item of RecyclerView but nothing happens. It just calls only once at the time of screen load & after nothing happens though I scrolled down & move to last item. Below is my code …
VVB
  • 7,363
  • 7
  • 49
  • 83
2
votes
0 answers

TextView bug workaround needed

I use the following code to create a TextView with scrollable content: textView.setHorizontallyScrolling(true); textView.setMovementMethod(new ScrollingMovementMethod()); textView.setText("a line of text"); When setting the text with LTR content…
Aviran
  • 5,160
  • 7
  • 44
  • 76
2
votes
4 answers

Smooth Scroll Not Working on Initial Scroll for Android RecyclerView

I am working on an Android app that runs on only one devicerunning KitKat. The smooth scrolling feature for a RecylerView I used that was working on other physical tablets and genymotion has unfortunately stopped working on the one device it needs…
2
votes
2 answers

Coordinator layout with viewpager, scroll doesn't work

I am working on this environment, compileSdkVersion 25 buildToolsVersion '25.0.0' defaultConfig { minSdkVersion 21 targetSdkVersion 25 with these dependencies: compile 'com.android.support:appcompat-v7:25.0.1' compile…
2
votes
1 answer

How to have dynamically a fixed header with scrollable content in Android?

I have created programmatically a RelativeLayout which contains a button. I have also created a ScrollView which contains a LinearLayout in which are more than 10 TextViews. I want to have the RelativeLayout to be aligned top and fixed. When someone…
Alex Mamo
  • 130,605
  • 17
  • 163
  • 193
2
votes
3 answers

RecyclerView scroll to position and get that view

I want to auto scroll a list item to top (firstVisible item) in my recycler view and get the view at that position, so I can highlight it, from my fragment. So, this is the gist of my fragment code : private void activateNewListItem(int…
2
votes
3 answers

Android Horizontal Scroll VIew like gallery

I want to make horizontal scroll view in android like gallery view, in which centered image zooms in while scroll. Often seen in web but I haven't found one in andriod. Here is an example from one iOS app. I have tried with HorizontalScrollView,…