1. Check out our companion app, Forums for Android! Download from Google Play

Disable scroll view action

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

  1. Kishore

    Kishore Guest
    Thread Starter

    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
    56

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

    OfTheDamned The Friendly Undead
    813

    Oct 29, 2009
    9,692
    8,365
    813
    Right Behind You
    I think this could be the best forum game EVER!
     
  4. scroll.setEnabled(false);
    scroll.setFocusable(true);
    scroll.setHorizontalScrollBarEnabled(maybe);
    scroll.setVerticalScrollBarEnabled(wtf?);
     
  5. eyebeam

    eyebeam Well-Known Member
    313

    The Bourne Identity Crisis

    (Say! This is fun.)
     
  6. ElasticNinja

    ElasticNinja Well-Known Member
    183

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

    eyebeam Well-Known Member
    313

    Banned for requesting an unnecessary sticky. Loser! :p
     
  8. scroll.setEnabled(falafel);
    scroll.setFocusable(glue);
    scroll.setHorizontalScrollBarEnabled(anchoviepaste);
    scroll.setVerticalScrollBarEnabled(snailmail);
     
  9. ElasticNinja

    ElasticNinja Well-Known Member
    183

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

    Was it THAT hard?
    WiiN
     

Share This Page

Loading...