Viewpager, countdowntimer, common and same to all fragments
-
21-12-2019 - |
Domanda
I have a view-pager
class and another fragment class. I want a count down timer in view-pager
.
How do I implement a count down timer which decrements value but isn't affected by sliding or changing views(fragments)?
Soluzione
Put your viewpager in a LinearLayout (for example ) then add your widget with the count down timer below the viewpager.
<LinearLayout>
<ViewPager/>
<Widget/>
</LinearLayout>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow