Questions tagged [android-scroll]
195 questions
1
vote
2 answers
Auto smooth scrolling in Recycler view
I use smooth recyclerView.smoothScrollBy(int dx , int dy) for scrolling.
Put this method in handler and call the handler every 50 miliseconds.
my speed range is 0 - 10.
Runnable of handle scrolling is
private Runnable runnableMove = new…

Ali Elahi
- 131
- 1
- 10
1
vote
3 answers
How to collapse the toolbar while I'm scrolling through a RecyclerView in ConstraintLayout?
I have an activity where I have set NavigationDrawer and works fine. This activity hosts a fragment where I have used:
setHasOptionsMenu(true);
To enable the menu. I have added a SearchView and override onCreateOptionsMenu():
@Override
public void…

Jorn
- 252
- 1
- 15
1
vote
1 answer
NestedWebView working properly with ScrollingViewBehavior
I have an app with two activities extends same abstract - one with WebView, another with ViewPager with TabLayout and RecyclerViews - and on this level I've implemented "shared" showing/hiding toolbar with scroll/fling…

snachmsm
- 17,866
- 3
- 32
- 74
1
vote
2 answers
Scroll issues in horizontal and vertical recyclerview
I have a MotionLayout with a ViewPager. Inside one of the fragments that's hosted by the ViewPager I have a vertical RecyclerView with two horizontal RecyclerViews. Scrolling vertially works fine, however, when I try to scroll horizontally on the…

Tudor S.
- 809
- 2
- 12
- 29
1
vote
1 answer
Android: On Keyboard Show, Pin ScrollView to Bottom
Objective
When a keyboard is shown, I would like to have the bottommost elements on my screen visible always.
Current Implementation
The current implementation that I have tried (outlined below) has worked in allowing the content to scroll;…

Anthony Dito
- 3,610
- 3
- 29
- 56
1
vote
3 answers
How to scroll to a child element in a ListActivity
I have a ListActivity class that populates a list using a CursorAdapter.
What I need to do is have the view scroll down to a specific element within the list, based on the values of elements in the list.
The list is a list of items with 'due dates'…

whoabackoff
- 1,603
- 4
- 17
- 32
1
vote
2 answers
My scrollview doesn't work at all
I can't make a ScrollView properly scrolling. It always cut off the content on the bottom, as if it were a normal LinearLayout.
My code:

Khoirul Ari
- 11
- 1
1
vote
2 answers
OnClick event does't called after scrolling with CollapsingToolbarLayout.
I've implemented parallax effect with CollapsingToolbarLayout and found an issue: When I click RecyclerView item immediately after the scrolling and parallax effect, the onClick event does't called, but onTouch event of RecyclerView is called. If…

Dima
- 1,490
- 16
- 25
1
vote
0 answers
How to make both parent and child view scrollable
I have a view which has a Spinner and a Linearlayout int it. The Linearlayout serves as a parent to a child layout. The child layout is inflated programmatically. The child view has a CardView with TextView and a listview in the CardView.
My…

3iL
- 2,146
- 2
- 23
- 47
1
vote
4 answers
How to make toolbar fixed while scrolling in android?
I have researched all the previous question before posting this question none of the previous solution worked for me. I need to make my Toolbar static while scrolling it goes up while scrolling butI need to make it static how can i do this. Now let…

M.Yogeshwaran
- 1,419
- 4
- 22
- 48
1
vote
2 answers
Making an android dialog scroll till the end before dismissing it
I have an android alert dialog that I show to user upon first time use. Now the text in this alert dialog is large, so scrolling is necessary.
I would like to make the dialog scroll by itself when the user presses OK button, till he reaches the end…

SoulRayder
- 5,072
- 6
- 47
- 93
1
vote
0 answers
What does setScrollingCacheEnabled(); do?
I initially used this method: myListView.setScrollingCacheEnabled(false); to enhance my list view's scrolling performance. However, I feel like it is causing a small bug in my list view. And I am not sure what it actually does.
1 out of every 20…

grantespo
- 2,233
- 2
- 24
- 62
1
vote
1 answer
Prevent Recycleview scroll when notifyDataSetChange()
when i notify my recycleview using notifyDataSetChange() its automatically scroll to top.
I am make this adapter for multi pane purpose.
the app is only for tablet.
so can any please give me the solution for this.??
here is my recycleview…

Prashant Jajal
- 3,469
- 5
- 24
- 38
1
vote
1 answer
HIDE STATUS BAR ON LOCK SCREEN APP
I am making an android lock screen app.My problem is the status bar .I writed this line on AndroidManifest.xml android:theme="@android:style/Theme.NoTitleBar.Fullscreen" but the users can scroll the status bar and unlock the phone without the app.So…

Khaled Bendia
- 11
- 1
- 3
1
vote
0 answers
How to keep the already Loaded Images in the Gridview after Scrolling in Android
I have a GridView that shows images from a sdcard. I use AsyncTask in the getview() method (getview loads the bitmap in AsyncTask) from this tutorial.
GridView scrolling is fast and loads the images in Gridview fast and positions it correctly but my…

hamidreza haajhoseini
- 454
- 5
- 21