pull/433/head
gedoor 4 years ago
parent 04a76a2849
commit 8051cc8d81
  1. 5
      app/src/main/java/io/legado/app/ui/widget/DetailSeekBar.kt
  2. 5
      app/src/main/java/io/legado/app/ui/widget/LabelsBar.kt
  3. 5
      app/src/main/java/io/legado/app/ui/widget/SelectActionBar.kt
  4. 3
      app/src/main/java/io/legado/app/ui/widget/ShadowLayout.kt
  5. 5
      app/src/main/java/io/legado/app/ui/widget/TitleBar.kt

@ -13,7 +13,10 @@ import io.legado.app.utils.progressAdd
import kotlinx.android.synthetic.main.view_detail_seek_bar.view.*
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 {
private val isBottomBackground: Boolean
var valueFormat: ((progress: Int) -> String)? = null

@ -8,7 +8,10 @@ import io.legado.app.ui.widget.text.AccentBgTextView
import io.legado.app.utils.dp
@Suppress("unused", "MemberVisibilityCanBePrivate")
class LabelsBar(context: Context, attrs: AttributeSet?) : LinearLayout(context, attrs) {
class LabelsBar @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null
) : LinearLayout(context, attrs) {
private val unUsedViews = arrayListOf<TextView>()
private val usedViews = arrayListOf<TextView>()

@ -17,7 +17,10 @@ import kotlinx.android.synthetic.main.view_select_action_bar.view.*
import org.jetbrains.anko.sdk27.listeners.onClick
@Suppress("unused")
class SelectActionBar(context: Context, attrs: AttributeSet?) : FrameLayout(context, attrs) {
class SelectActionBar @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null
) : FrameLayout(context, attrs) {
private var callBack: CallBack? = null
private var selMenu: PopupMenu? = null

@ -14,11 +14,10 @@ import io.legado.app.utils.getCompatColor
/**
* ShadowLayout.java
*
*
* Created by lijiankun on 17/8/11.
*/
@Suppress("unused")
class ShadowLayout(
class ShadowLayout @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null
) : RelativeLayout(context, attrs) {

@ -22,7 +22,10 @@ import org.jetbrains.anko.bottomPadding
import org.jetbrains.anko.topPadding
@Suppress("unused")
class TitleBar(context: Context, attrs: AttributeSet?) : AppBarLayout(context, attrs) {
class TitleBar @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null
) : AppBarLayout(context, attrs) {
val toolbar: Toolbar
val menu: Menu

Loading…
Cancel
Save