INNER CODE UNIT · Kotlin
layoutDirection
tommybuonomo/dotsindicator · viewpagerdotsindicator/src/main/kotlin/com/tbuonomo/viewpagerdotsindicator/BaseDotsIndicator.kt:219
layoutDirection == View.LAYOUT_DIRECTION_RTL -> {
layoutDirection = View.LAYOUT_DIRECTION_LTR
rotation = 180f
requestLayout()
}
rotation == 180f -> {
val parentIsRtl = (parent as? View)?.layoutDirection == View.LAYOUT_DIRECTION_RTL
if (!parentIsRtl) {
layoutDirection = View.LAYOUT_DIRECTION_INHERIT
rotation = 0f
requestLayout()
}
}
}
}
}
override fun onRestoreInstanceState(state: Parcelable?) {