Not click able
24Lathiya opened this issue · 4 comments
24Lathiya commented
Not able to click on view. i used progressbar to show download progress on image and i want to cancel download on click but as i said i am not getting click event on click CircularMusicProgressBar. please fix issue ASAP. Thanks
xml:
<info.abdolahi.CircularMusicProgressBar
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/action_download_stop"
android:layout_width="42dp"
android:layout_height="42dp"
android:padding="8dp"
android:layout_gravity="center"
android:src="@drawable/download_cancel"
app:border_color="#fff"
app:border_width="2dp"
app:progress_color="#41c15c"
app:progress_startAngle="0"
app:enable_touch="true"
app:draw_anticlockwise="false"
android:visibility="gone" />
Bruce8hou commented
me too
whizsid commented
@24Lathiya @Bruce8hou You can override the onClick method in OnCircularSeekBarChangeListener
class.
This worked for me:-
fileChooseIcon.setOnCircularBarChangeListener(object: OnCircularSeekBarChangeListener{
override fun onClick(circularBar: CircularMusicProgressBar?) {
this@MainActivity.onClickFileChooseIcon()
}
override fun onLongPress(circularBar: CircularMusicProgressBar?) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
override fun onProgressChanged(
circularBar: CircularMusicProgressBar?,
progress: Int,
fromUser: Boolean
) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
})
aliab commented
@24Lathiya update to 1.4.0 please