1. Download our Official Android App: Forums for Android!

Disable scroll view action

Discussion in 'Forum Games' started by Kishore, Feb 9, 2010.

  1. Kishore

    Kishore Guest
    Thread Starter
    Rank:
    None
    Posts:
    0
    Joined:

    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.
     

    Advertisement

  2. MikeMcG

    MikeMcG Well-Known Member
    Rank:
    None
    Points:
    56
    Posts:
    114
    Joined:
    Jan 16, 2010

    Jan 16, 2010
    114
    3
    56
    Electrician
    NJ
  3. OfTheDamned

    OfTheDamned The Friendly Undead
    Rank:
    None
    Points:
    813
    Posts:
    9,692
    Joined:
    Oct 29, 2009

    Oct 29, 2009
    9,692
    8,365
    813
    Right Behind You
    I think this could be the best forum game EVER!
     
  4. Frisco

    Frisco =Luceat Lux Vestra=
    Rank:
    None
    Points:
    1,343
    Posts:
    22,479
    Joined:
    Jan 19, 2010

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

    eyebeam Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    5,417
    Joined:
    Nov 6, 2009

    The Bourne Identity Crisis

    (Say! This is fun.)
     
  6. ElasticNinja

    ElasticNinja Android Expert
    Rank:
    None
    Points:
    183
    Posts:
    4,488
    Joined:
    Aug 29, 2010

    Aug 29, 2010
    4,488
    472
    183
    Student
    Cork City, IMF, EU
    haha this is great
    stickyyyyyyy!!!!!!!!!!11111!!!!!
     
  7. eyebeam

    eyebeam Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    5,417
    Joined:
    Nov 6, 2009

    Banned for requesting an unnecessary sticky. Loser! :p
     
  8. Frisco

    Frisco =Luceat Lux Vestra=
    Rank:
    None
    Points:
    1,343
    Posts:
    22,479
    Joined:
    Jan 19, 2010

    scroll.setEnabled(falafel);
    scroll.setFocusable(glue);
    scroll.setHorizontalScrollBarEnabled(anchoviepaste);
    scroll.setVerticalScrollBarEnabled(snailmail);
     
  9. ElasticNinja

    ElasticNinja Android Expert
    Rank:
    None
    Points:
    183
    Posts:
    4,488
    Joined:
    Aug 29, 2010

    Aug 29, 2010
    4,488
    472
    183
    Student
    Cork City, IMF, EU
    scroll.setHorizontalScrollBarDisabled(true);

    Was it THAT hard?
    WiiN
     

Share This Page

Loading...