How to disable vertical scrolling of a view in android?
<p>In my android application.I have a panorama view, in this view i want to avoid only vertical scrolling. So i disabled  it using  <code>onTouchEvent(MotionEvent event)</code> method.</p>

<p>Hear is the code.</p>

<pre><code>    @Override
public boolean onTouchEvent(MotionEvent event) {
    if( event.getAction()==MotionEvent.ACTION_UP){
        Log.d(TAG, "onTouchEvent:ACTION_UP");
        return false;
    }else if(event.getAction()==MotionEvent.ACTION_DOWN){
        Log.d(TAG, "onTouchEvent:ACTION_DOWN");     
        return false;
    }else{
        Log.d(TAG, "onTouchEvent:ACTION_UNKWON");
        return super.onTouchEvent(event);
    }

}
</code></pre>

<p>but it disables scrolling horizontally also.How can i solve this??</p>
