• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Disable scroll view action

  • Thread starter Thread starter Kishore
  • Start date Start date
K

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.
 
scroll.setEnabled(false);
scroll.setFocusable(true);
scroll.setHorizontalScrollBarEnabled(maybe);
scroll.setVerticalScrollBarEnabled(wtf?);
 
scroll.setEnabled(falafel);
scroll.setFocusable(glue);
scroll.setHorizontalScrollBarEnabled(anchoviepaste);
scroll.setVerticalScrollBarEnabled(snailmail);
 
Back
Top Bottom