Questions tagged [android-scroll]

195 questions
1
vote
1 answer

How to maintain scroll position of listview when the adapter update

I am bind the adapter with listview and at first I have fetch 10 records then when I scroll ends then again the items added in listview and it works perfect. But when I added items after scroll end then at that time items are added successfully then…
1
vote
2 answers

Scroll is not getting enabled

I have designed a signup screen in which I have a Scroll view , But Scroll view is not working. I am not able to find why Scroll is not working , Help me with this. Below is the code for reference:
Naga
  • 1,931
  • 4
  • 25
  • 42
1
vote
2 answers

Creating launcher like drag and drop with multiple screens in android

I want to implement a layout where I can drag an image and drop it to another screen similar to android launcher where we can place the app icons anywhere on a set of screens scrolling horizontally. I am not sure how to start and where to start. I…
sanedroid
  • 1,036
  • 4
  • 16
  • 27
1
vote
1 answer

Toggle autoscroll of ListView - when scrolled interactively by user

I have a real app - which you can see on the left in the below screenshot. And I have prepared a very simple test app at GitHub, which you can see at the right: The real app has a ListView at the bottom, which is filled with Bluetooth-related log…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
1
vote
0 answers

Android listview smothScrollBy with speed?

Is there any way similar like using smoothScrollToPosition with control over speed or the time it takes to scroll smoothly? Now i am using below snippet to scrool to pos int firstVisible = lv.getFirstVisiblePosition(); int lastVisible =…
nmxprime
  • 1,506
  • 3
  • 25
  • 52
1
vote
0 answers

Android EditText ScrollingMovementMethod cause Null pointer Exception

In my Edittext scrollView in the scrollview LinearLayout, sometime the edittext throws exception, i dont know why this happen. any one have idea please help me . Thanks on Advance This is my code::: edittext.setOnTouchListener(new…
1
vote
1 answer

Android Smoothscrolltoposition has stopped

I'm looking for a method to be fired when a programmatically scrolling (by using smoothscrolltoposition) has reached the given position. I have an activity, with a listview. When the user taps a button, the list scrolls to a given position. I need…
Milton
  • 928
  • 1
  • 10
  • 22
1
vote
2 answers

Hide top bar when scrolling down

how can I obtain same or similar result to top bar in Google Keep app (Android) - which is always on and if we scroll down its hides. Similar is done in Chrome browser on Android. It appear again when scrolling up. Valid XHTML…
Michał Tajchert
  • 10,333
  • 4
  • 30
  • 47
1
vote
4 answers

Android - Layout scrolling with a ListView?

My app has a profile page. In that page, I have profile and header photos. And have a ListView at below. My ListView scrolls correctly but not RelativeLayout which contains profile and header photos. I can't wrap the whole xml with ScrollView…
JustWork
  • 1,944
  • 3
  • 22
  • 34
1
vote
2 answers

Android - ListView first visible position not updating

So I have a ListView and also up and down buttons. My goal is to scroll the ListView by the it's height everytime I press one of the buttons, simple up / down navigation. The scrolling does work, sort of. When I press down, the ListView scrolls by…
mgibson
  • 6,103
  • 4
  • 34
  • 49
1
vote
0 answers

After using scrollTo(int x, int y) method in ListView, I scrolled down and it went to top again

I want to use the method scrollTo(int x, int y) to let my ListView to local the point (x,y), but after the method working, I scrolled down the ListView, the scroller bar went back to the top again. I don't know why. The method…
kermit
  • 11
  • 2
1
vote
2 answers

Trying to get textView to stick to gridView scroll

I have a fragment with a textView giving instructions, and below a gridView. I wanted for the textView to scroll upwards with the gridView. In other words: for textView to disappear off screen when gridView is scrolling. My idea of how to accomplish…
markbratanov
  • 878
  • 3
  • 17
  • 39
1
vote
0 answers

maintain scroll position of android table view after the activity is restarted

I have one activity having table view in it. I dynamically generates a table with togglebutton in each row. Now,when user taps this button to switch it on whole table should get refreshed so that if user wants that button to switch off again then it…
1
vote
1 answer

Vertical scrolling in calendar

I am trying to create a calender for android 4.x devices where in the dates should get displayed in cell and month name at the top. now where ever user scroll up and down it should change the month (in short I would like to implement the…
user2231561
  • 11
  • 1
  • 2
1
vote
1 answer

nice and clean android scroll like this? (with image)

How do I get my android scrollbars looking like this? (see image link). ... I am working on my first Android app. Am new to android and sometimes the simplest things can bee a challenge. Can anyone please point me the right direction. Thanks.