1

I've made a vertical SeekBar by overriding the onDraw method and flipping it 90 degrees. Now I need to put this in a ScrollView.

The actual layout structure is

<ScrollView>
  <RelativeLayout>
     ...
     <LinearLayout>
       <com.mypackage.VerticalSeekBar/>

Is it possible to make sure the ScrollView does not get the touch event of my seekbar?

dumazy
  • 13,857
  • 12
  • 66
  • 113

1 Answers1

1

Try this approach

<ScrollView  
focusable="false" 
focusableInTouchMode="false" >

And in

<LinearLayout or in VerticalSeekBar
focusable="true" 
focusableInTouchMode="true" >

It will stop ScrollView from getting focus and focus is get by VerticalSeekbar.

Zar E Ahmer
  • 33,936
  • 20
  • 234
  • 300