Go Back   Android Forums > Android Community > The Lounge > Forum Games
Forum Games For all those silly forum games we like to play
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

test: Reply
 
LinkBack Thread Tools
Old February 9th, 2010, 07:18 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Feb 2010
Posts: 0
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Disable scroll view action

In my application i've a line for increasing the width of a widget(by dragging the line to right/left) and i've the scroll view enabled in the same activity.
I need to disable the scroll view action when the user touches the line and when user releases, it should be enabled.
The scroll view should be in visible state but the action of the scroll view should be disabled.
Please help me in solving this problem.
I've tried with these but none of them is working.
scroll.setEnabled(false);
scroll.setFocusable(false);
scroll.setHorizontalScrollBarEnabled(false);
scroll.setVerticalScrollBarEnabled(false);

Thanks in advance.

Kishore is offline  
Reply With Quote
Sponsors
Old February 9th, 2010, 09:27 AM   #2 (permalink)
Member
 
MikeMcG's Avatar
 
Join Date: Jan 2010
Location: NJ
Posts: 114
 
Device(s): HTC Evo
Carrier: Not Provided

Thanks: 5
Thanked 4 Times in 4 Posts
Default

I win.
MikeMcG is offline  
Reply With Quote
Old February 9th, 2010, 10:54 AM   #3 (permalink)
The Friendly Undead
 
OfTheDamned's Avatar
 
Join Date: Oct 2009
Location: Right Behind You
Posts: 9,699
 
Device(s): Droid Razr Maxx
Carrier: Not Provided

Thanks: 3,714
Thanked 8,828 Times in 3,066 Posts
Default

I think this could be the best forum game EVER!
__________________
Site Rules and Guidelines - Learn them, live them and love them.

Does a post have your blood boiling? Make a instead of a retort.
OfTheDamned is offline  
Reply With Quote
Old November 30th, 2010, 06:05 AM   #4 (permalink)
=Luceat Lux Vestra=
 
Frisco's Avatar
 
Join Date: Jan 2010
Gender: Male
Posts: 21,083
 
Device(s): Galaxy Note 2, Galaxy Tab 2 Wifi Only
Carrier: Verizon

Thanks: 6,616
Thanked 7,930 Times in 4,566 Posts
Default

scroll.setEnabled(false);
scroll.setFocusable(true);
scroll.setHorizontalScrollBarEnabled(maybe);
scroll.setVerticalScrollBarEnabled(wtf?);
__________________

Frisco is offline  
Reply With Quote
Old November 30th, 2010, 11:23 AM   #5 (permalink)
Born to be mild
 
eyebeam's Avatar
 
Join Date: Nov 2009
Location: Richfield MN
Gender: Male
Posts: 5,419
 
Device(s): Me - Evo 3D, Nexus 7 - Wife - Evo 3D, Galaxy Tab 10.1"
Carrier: Sprint

Thanks: 2,096
Thanked 3,097 Times in 2,145 Posts
Default

The Bourne Identity Crisis

(Say! This is fun.)
eyebeam is offline  
Reply With Quote
Old November 30th, 2010, 02:55 PM   #6 (permalink)
Senior Member
 
ElasticNinja's Avatar
 
Join Date: Aug 2010
Location: Cork City, IMF, EU
Posts: 4,411
 
Device(s): Xperia Play, ZTE Blade
Carrier: Not Provided

Thanks: 770
Thanked 452 Times in 400 Posts
ciaranhurley0@gmail.com
Default

haha this is great
stickyyyyyyy!!!!!!!!!!11111!!!!!
__________________
Sign up for Minus online storage and get 10 GB of Free Space today! Sign up Here!
ElasticNinja is offline  
Reply With Quote
Old November 30th, 2010, 03:11 PM   #7 (permalink)
Born to be mild
 
eyebeam's Avatar
 
Join Date: Nov 2009
Location: Richfield MN
Gender: Male
Posts: 5,419
 
Device(s): Me - Evo 3D, Nexus 7 - Wife - Evo 3D, Galaxy Tab 10.1"
Carrier: Sprint

Thanks: 2,096
Thanked 3,097 Times in 2,145 Posts
Default

Quote:
Originally Posted by shadowninty View Post
haha this is great
stickyyyyyyy!!!!!!!!!!11111!!!!!
Banned for requesting an unnecessary sticky. Loser!
eyebeam is offline  
Reply With Quote
Old November 30th, 2010, 03:15 PM   #8 (permalink)
=Luceat Lux Vestra=
 
Frisco's Avatar
 
Join Date: Jan 2010
Gender: Male
Posts: 21,083
 
Device(s): Galaxy Note 2, Galaxy Tab 2 Wifi Only
Carrier: Verizon

Thanks: 6,616
Thanked 7,930 Times in 4,566 Posts
Default

scroll.setEnabled(falafel);
scroll.setFocusable(glue);
scroll.setHorizontalScrollBarEnabled(anchoviepaste );
scroll.setVerticalScrollBarEnabled(snailmail);
Frisco is offline  
Reply With Quote
Old November 30th, 2010, 03:28 PM   #9 (permalink)
Senior Member
 
ElasticNinja's Avatar
 
Join Date: Aug 2010
Location: Cork City, IMF, EU
Posts: 4,411
 
Device(s): Xperia Play, ZTE Blade
Carrier: Not Provided

Thanks: 770
Thanked 452 Times in 400 Posts
ciaranhurley0@gmail.com
Default

scroll.setHorizontalScrollBarDisabled(true);

Was it THAT hard?
WiiN
ElasticNinja is offline  
Reply With Quote
Reply
Tags
android 2.0, android scroll view


Go Back   Android Forums > Android Community > The Lounge > Forum Games
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:59 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.