updateResource

open override fun updateResource(context: Context)

Updates the resources of the ViewPager and its indicator based on the current theme.

This method sets the background tint of the ViewPager and updates the drawables for the "on" and "off" states of the indicator circles. The colors used are retrieved from theme attributes.

Parameters

context

The Context used to access theme resources and drawables.