INNER CODE UNIT · Kotlin

rotation

tommybuonomo/dotsindicator · viewpagerdotsindicator/src/main/kotlin/com/tbuonomo/viewpagerdotsindicator/BaseDotsIndicator.kt:224

                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?) {
        super.onRestoreInstanceState(state)
        post { refreshDots() }
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…