I need to play the audio inside RecyclerView
. Requirement is SeekBar
will be enable after user clicked the play button . So i tried.
<SeekBar
android:id="@+id/seek_Media_Player"
android:layout_width="match_parent"
android:layout_marginLeft="@dimen/_6sdp"
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:layout_marginRight="@dimen/_6sdp"
android:layout_height="wrap_content" />
But its not working . android:clickable="false"
worked when i use SeekBar
inside an Activity
or Fragment
but not inside RecyclerView
. I also tried to set those attribute at runtime but not worked.
Setting setEnabled(false)
making SeekBar
invisible. I have been busting my head on this from last 6 hours. I am posting the item image just to show . Please let me know how can i disable/enable click on SeekBar
.