Disable scroll view action


Last Updated: 2010-11-30 21:28:43
  1. Kishore

    Kishore Guest

    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

    I win.
  3. OfTheDamned

    OfTheDamned The Friendly Undead VIP Member

    I think this could be the best forum game EVER!
  4. Frisco

    Frisco =Luceat Lux Vestra= VIP Member

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

    eyebeam Well-Known Member

    The Bourne Identity Crisis

    (Say! This is fun.)
  6. ElasticNinja

    ElasticNinja Well-Known Member

    haha this is great
    stickyyyyyyy!!!!!!!!!!11111!!!!!
  7. eyebeam

    eyebeam Well-Known Member

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

    Frisco =Luceat Lux Vestra= VIP Member

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

    ElasticNinja Well-Known Member

    scroll.setHorizontalScrollBarDisabled(true);

    Was it THAT hard?
    WiiN

Share This Page