|
|
@ -13,7 +13,10 @@ import io.legado.app.utils.progressAdd |
|
|
|
import kotlinx.android.synthetic.main.view_detail_seek_bar.view.* |
|
|
|
import kotlinx.android.synthetic.main.view_detail_seek_bar.view.* |
|
|
|
import org.jetbrains.anko.sdk27.listeners.onClick |
|
|
|
import org.jetbrains.anko.sdk27.listeners.onClick |
|
|
|
|
|
|
|
|
|
|
|
class DetailSeekBar(context: Context, attrs: AttributeSet?) : FrameLayout(context, attrs), |
|
|
|
class DetailSeekBar @JvmOverloads constructor( |
|
|
|
|
|
|
|
context: Context, |
|
|
|
|
|
|
|
attrs: AttributeSet? = null |
|
|
|
|
|
|
|
) : FrameLayout(context, attrs), |
|
|
|
SeekBar.OnSeekBarChangeListener { |
|
|
|
SeekBar.OnSeekBarChangeListener { |
|
|
|
private val isBottomBackground: Boolean |
|
|
|
private val isBottomBackground: Boolean |
|
|
|
var valueFormat: ((progress: Int) -> String)? = null |
|
|
|
var valueFormat: ((progress: Int) -> String)? = null |
|
|
|