Open MrAndroi opened 11 months ago
Hello, Thanks for the amazing library.
Im trying to use it like this:
Note, This issue on api level 34
//Xml <com.tbuonomo.viewpagerdotsindicator.DotsIndicator android:id="@+id/viewpager_indicator" android:layout_width="wrap_content" android:layout_height="wrap_content" app:selectedDotColor="@color/primary" app:dotsColor="@color/gray_2" app:dotsCornerRadius="10dp" app:dotsSize="8dp" app:dotsSpacing="7dp" app:dotsWidthFactor="1" app:progressMode="false" android:layout_marginBottom="30dp" app:layout_constraintBottom_toTopOf="@+id/button_next" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" /> //primaryColor, is blue
and in the activity:
override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(binding.root) init() } private fun init() { setupAdapter() setupClicks() setupListeners() binding.executePendingBindings() } private fun setupAdapter() { onBoardingAdapter = OnBoardingAdapter() binding.viewPager.adapter = onBoardingAdapter onBoardingAdapter.submitList(viewModel.onBoardingContent) binding.viewPager.offscreenPageLimit = 1 binding.viewpagerIndicator.attachTo(binding.viewPager) }
but the issue when i run the app i do not see an indicators here is a screenshot:
link_image_one
but when i add black background to the indicator i can see it like this:
link_image_two
Can you help please ?
Hello, Thanks for the amazing library.
Im trying to use it like this:
Note, This issue on api level 34
and in the activity:
but the issue when i run the app i do not see an indicators here is a screenshot:
link_image_one
but when i add black background to the indicator i can see it like this:
link_image_two
Can you help please ?