Questions tagged [android-scroll]

195 questions
0
votes
3 answers

Phonegap: Image size and keypad issue

I have been developing mobile app for android using Phonegap. I am facing difficulty with Screen DPI's and keypad display. How can i use an image for various dpi's with various screen resolutions? And I want the screen to scroll when keypad…
Annamalai
  • 29
  • 4
0
votes
2 answers

Android OverScroller and performance

I have used OverScroller for implementing scroll of my view. Here is some code: @Override protected void onDraw(Canvas canvas) { if (scroller.computeScrollOffset()){ int x = scroller.getCurrX(); int y = scroller.getCurrY(); …
Vetalll
  • 3,472
  • 6
  • 24
  • 34
0
votes
1 answer

How to hook into Android ScrollView when it starts/ends scrolling?

How do I programmatically hook into an Android ScrollView when it starts/ends scrolling? I have a custom View which is placed inside a ScrollView. I want my custom View to be informed right before the scrolling begins and just after the scrolling…
safwanc
  • 3,351
  • 2
  • 15
  • 20
0
votes
1 answer

how to intercept horizontal flings on children of an android ListView

I'd like to respond to horizontal "fling" gestures on individual cells in a vertically scrolling ListView. Currently I've accomplished this by using a GestureDetector for each cell view in the list. I'm noticing, though, that it's much harder to…
jph
  • 2,181
  • 3
  • 30
  • 55
0
votes
1 answer

TextView and ScrollingMovementMethod trouble

I'm currently doing this to make my TextView scrollable: myTextView.setMovementMethod(new ScrollingMovementMethod()); What I want is to be able to, on create, have the visible portion of my TextView be a certain line of text that I choose. As it is…
Marcel Puyat
  • 325
  • 3
  • 8
0
votes
0 answers

What are correct callback methods to implement custom toolbar with scrolling and various gesture features?

Implement ToolBar control with custom view regarding: The goal is to achieve the scrolling features using Xamarin.Android framework and without using ActionBar according my business requirement. The required features are left and right swipe, drag…
0
votes
2 answers

Prevent GridView from scrolling on onConfigurationChanged

When configuration of the activity changes I apply this code - public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); …
0
votes
1 answer

Getting current scroll position using Scroller object

I have an imageview that is larger than the screen size so I am using a Scrollerobject myScroller to handle the scrolling. However, I cannot get the correct current scroll position. I have tried using the methods outlined in the developer guides…
kburbach
  • 761
  • 10
  • 26
0
votes
0 answers

How to find that particular View Section of ListView is Visible from 3 seconds

i have 24 items in the listview where firstVisibleItem = 0 visibleItemCount = 6 totalItemCount = 24 so after it by scrolling i got firstVisibleItem = 16 visibleItemCount = 6 totalItemCount = 24 after leaving that view whose firstVisibleItem =…
Tushar Pandey
  • 4,557
  • 4
  • 33
  • 50
0
votes
1 answer

how to invoke customview class methods into GLSurfaceview Class

I want to add the scrollTo() and scrollBy() to GLSurfaceview class. This two methods are from the View class. Is it possible to invoke the above two methods on GLSurfaceview class? Why? Because I want to scroll the GLSurfaceview. My Code is HERE
harikrishnan
  • 1,985
  • 4
  • 32
  • 63
0
votes
2 answers

Scroll list view and detect the end- android

I have a list view inside which a linear layout with lots of items. Now i want to have a imageview at the button stating scrolldown till the end of the scrollview is reached and once the end is reached to hide it self. Again once the user scrolls…
bharath
  • 953
  • 4
  • 17
  • 30
0
votes
2 answers

Gridview scrolling not working (It's too slow)

I have a grid view its showing some images from SD card it showing properly but only when I am scrolling it loading images again and again that is why scrolling is too slow I don't know why it loading images every time when I am scrolling (images…
A J
  • 4,542
  • 5
  • 50
  • 80
0
votes
1 answer

TextView in PagerAdapter: scrollable in API15-17, not in API7

This FragmentActivity creates a few fragments that are put in a slider (horizontal. Only one fragment is shown here): public class MainActivity2 extends FragmentActivity{ private ViewPager mPager; private FragmentStatePagerAdapter…
quinestor
  • 1,432
  • 4
  • 19
  • 40
0
votes
4 answers

how to detect up-scrolling in listview

I want to hide actionbar on up-scrolling of listview and displaying actionbar again on down-scrolling of listview. Is there any method to detect up and down scrolling of listview? if yes, then please provide some reference. Any help or guidance will…
abhishek kumar gupta
  • 2,189
  • 6
  • 35
  • 56
0
votes
1 answer

how can I make footer visible,only if ScrollView is scrolled down?

If the ScrollView is scrolled down it has to show the footer. If its scrolled up, then footer has to disable. how to do this kinda stuff?
1 2 3
12
13