Perform motion event on scroll view Android

Im creating client/server app and I want to send motion event performed on scroll view on client side to server side, and perform it on the same scroll view.

I have no problems sending motion event over TCP connection, but having problem performing that motion event on same scroll view on server side.

How do I programmatically perform motion event on scroll view? Help.

--------------Solutions-------------

Use the method public void scrollTo(int x, int y) on the ScrollView .

Category:android Time:2011-09-08 Views:2

Related post

  • scrollview's subview does not get touch events when scroll view scrolls 2011-08-02

    I have a scrollView onto which some imageViews are added. I want that when scrollView scrolls then also the imageViews should get touch events. But it is not happening in my case. Only one of the two things happen at a time. Either the scrollView scr

  • Not scrollable listview in scroll view android 2012-04-06

    i need to make a layout that is scrollable, holds a listview that is not scrollable(full height of the content). So when i scroll the content above the listview is showed, and the full listview is displayed. Is this possible in android? -------------

  • custome control event in list view android 2011-01-07

    I have a listview. which is mase by custome control.. and custome control class extends baseadapter class. one of my custome control is button.. so onclick of that particular button I have to find position of row.. pleas tell me howz it possible ----

  • Can parent and child views obtain the motion event simultaneously in Android? 2011-04-18

    In the main activity, there is a parent view and a child view. I need to obtain the motion event in both views simultaneously. Is it possible to do that ? Currently, I can only intercept the motion event in the child view. Parent view receives nothin

  • How to prevent split motion events from happening on the ICS Android soft keys (Back, Home, Recent Apps) and hidden views 2012-02-20

    I have found (what I consider a bug) related to split motion events in android. Here is a simple scenario: If I have two buttons: Button A and Button B. Button A launches a new intent and Button B hides Button A. Long press on Button A (Don't let go)

  • loading multiple view controllers in a page scroll view and its interaction 2011-07-19

    I need to implement a page scroll view. Each page view should load a separate view controller. On performing actions/events on the view controller should update/refresh the page view.Is it possible? If yes , how? It would be very much grateful If you

  • Android capture all motion events and dispatch them to children 2011-09-12

    Alright, this is giving me headache for over an hour. I've got several ScrollViews in ViewFlipper. I want to implement swipe left/right gesture while letting the scrollview to scroll. The idea is quite simple - intercept the event and viewflipper, pa

  • Android touch events with multiple views(such as a ListView in a Viewflliper) 2011-04-08

    Android touch events with multiple views(such as a ListView in a Viewflipper) When i put a ListView inside the FlingGallery, the FlingGallery can't work when i Fling my finger. --------------Solutions------------- Write an extension of ViewFlipper an

  • android-How to put scroll view under scroll view 2011-06-09

    My application need to 2 scroll views(sv1,sv2). sv1 is main scroll view and sv2 is sub scroll view of sv1. is it possible? then how to do it. Following one is my answer. it is working in simulator only but not working in device means device support s

  • How to get a horizontal scroll view for Images in android? 2011-11-30

    I am planning to include the feature of horizontal scroll view which gets dynamically loaded for the images in the gallery.I have tried on IMAGE GALLERY but there are certain constraints in it.How to dynamically load the images by horizonatal scroll

  • How does a motion event gets associated with a certain view? 2011-12-13

    How does a motion event gets associated with a certain view? is It the window manager, phone manager or view class? I am facing a problem which is: i am sending motionEvents using sendPointerSync from instrumentation class i can see the events being

  • Android - disable touch event while scrolling 2011-12-22

    I tried all sorts of workarounds but none worked for me. I have a scrollview containing cells and each cell has an onclicklistener. these onclicklisteners add views to the mainview and I clear these subviews onscrollchanged. but if I try to click on

  • move text on touch motion event android 2012-01-11

    i have text View in layout and set text in layout..now i want to maove this text on touch event means depends on the motion event ..so how to move this text and set text , where i put off my finger from screen..i searched in Google and found , can ge

  • How to capture the motion event when touch move from view group to child view? 2013-08-01

    I write a custom view group to implement functions what i want. But i have a problem need your help. The problem is : the finger move from view group to the child view. But i miss the touch event when the finger on the child view. I override the view

  • Motion Events in android 2010-02-27

    This is the code for motion events in my instrumentation testing. long downTime = SystemClock.uptimeMillis(); long eventTime = SystemClock.uptimeMillis(); MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, 100,100, 0

  • Displaying number of images in Android application with scroll view. I think the images should be kept in list view 2010-05-05

    I want to display images on Android screen. The images should be scrolled vertically. How should I do this? Please help me. --------------Solutions------------- Follow the steps I am mentioning below, take one Scroll View with Vertical Scroll Add one

  • Is android's motion event handling accurate? 2010-06-06

    Bug I have a weird bug in my piano app. Sometimes keys (and thus notes) hang. I did a lot of debugging and narrowed it down to what looks like androids inaccuracy of motion event handling: DEBUG/(2091): ACTION_DOWN A4 DEBUG/(2091): KeyDown: A4 DEBUG/

  • Add scroll view for particular row in runtime in android? 2010-08-09

    In my tableview i need to add the scroll view for the particular rows . Is there any way to create like this in android? --------------Solutions------------- Did you try to create a ScrollView dynamically and add it in your table layout? Something li

  • Scroll view for textview in android 2010-08-09

    I am adding three text views in a activity. I need scrollview for every textview. If i add scroll view the third one is only have the scroll view. How to set scroll view for all text views in a single screen(Activity) --------------Solutions---------

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 0.545 (s). 13 q(s)