This is may layout xml:
<RelativeLayout
android:id="@+id/seek_bar_wrapper"
android:layout_width="match_parent"
android:layout_height="200dip">
<SeekBar
android:id="@+id/seek_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_margin="20dip"
android:maxHeight="2dip"
android:minHeight="2dip"
android:progressDrawable="@drawable/drawable_seekbar_progress"
android:thumb="@drawable/drawable_seekbar_thumb" />
</RelativeLayout>
I set an OnClickListener
to the RelativeLayout
. The strange thing is that when I touch the RelativeLayout
, the SeekBar
performs like I press it, it's thumb become the drawable when it's state is pressed. I think it's state become pressed.
Is this a bug and how to deal with it?