pull/43/head
kunfei 5 years ago
parent c2ceaa1b45
commit ea292d0448
  1. 5
      app/src/main/java/io/legado/app/ui/widget/anima/RotateLoading.kt

@ -80,7 +80,10 @@ class RotateLoading : View {
)
shadowPosition = typedArray.getInt(R.styleable.RotateLoading_shadow_position, DEFAULT_SHADOW_POSITION)
speedOfDegree = typedArray.getInt(R.styleable.RotateLoading_loading_speed, DEFAULT_SPEED_OF_DEGREE)
hideMode = typedArray.getInt(R.styleable.RotateLoading_hide_mode, GONE)
hideMode = when (typedArray.getInt(R.styleable.RotateLoading_hide_mode, 2)) {
1 -> INVISIBLE
else -> GONE
}
typedArray.recycle()
}
speedOfArc = (speedOfDegree / 4).toFloat()

Loading…
Cancel
Save