?
Solved

In android how to disable scrollview action, so that dragging is possible.

Posted on 2011-04-20
3
Medium Priority
?
1,618 Views
Last Modified: 2012-05-11
Hello friend,

     I am working on some dragging functionality in which I need to drag small icon image on scrollable layout. But When image which is drag then instead of dragging scrolling is done.
So please tell me how I stop this scrolling action at the time  dragging and again start it.
     
     Also if any other solution for this problem then please tell me.

Thank You for help.
0
Comment
Question by:jbajaj
3 Comments
 
LVL 8

Expert Comment

by:shaunak
ID: 35481871
set the scrollable property of that element to false
0
 

Author Comment

by:jbajaj
ID: 35489364
Hi shaunak,
 
      Can you give me an example  how/which property I can set to false. Because I try it for most of property but I am not success to disable scroll bar.

Thank You.
0
 
LVL 8

Accepted Solution

by:
Santhana earned 2000 total points
ID: 35496740
I guess there there is no property to set the scroll view to stop scroll.
But one thing we can do that is we can control  the on touch of the image view.
Create one custom image view. Override the OnTouchEvent() method. In this if the user touched the image view set a flag .
And then override the onTouch of scroll view .Use this flag in the on touch of scroll view.If the flag is set then return true. In this way we can control the scrolling of scroll view.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, people trade privacy and security for convenience. However in today's concrete jungle, this is an extremely foolish decision considering the vast amount of technologies being used against consumer interest. First off, I won't waste any time e…
If your app took Google’s lash recently, here are the 5 most likely reasons.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question