mirror of
https://github.com/AdrianKuta/ViewPagerDotsIndicator.git
synced 2025-04-19 23:19:02 +02:00
Updated ReadMe.md
This commit is contained in:
parent
f198d065b8
commit
d140b928bd
@ -14,9 +14,10 @@ selected and default dots.
|
|||||||
> Implementation for `ViewPager2` is almost the same:
|
> Implementation for `ViewPager2` is almost the same:
|
||||||
> Replace `androidx.viewpager.widget.ViewPager` with `androidx.viewpager2.widget.ViewPager2`.
|
> Replace `androidx.viewpager.widget.ViewPager` with `androidx.viewpager2.widget.ViewPager2`.
|
||||||
|
|
||||||
|
---
|
||||||
Firstly, we have to add `TabLayout` to our screen layout, and connect it
|
Firstly, we have to add `TabLayout` to our screen layout, and connect it
|
||||||
with `ViewPager`. We can do this in two ways:
|
with `ViewPager`. We can do this in two ways:
|
||||||
---
|
|
||||||
#### Nested `TabLayout` in `ViewPager`
|
#### Nested `TabLayout` in `ViewPager`
|
||||||
```xml
|
```xml
|
||||||
<androidx.viewpager.widget.ViewPager
|
<androidx.viewpager.widget.ViewPager
|
||||||
|
Loading…
x
Reference in New Issue
Block a user