Home > Mobile >  The duration of the Android implementation in several interface display
The duration of the Android implementation in several interface display

Time:09-26

Embedded in a matter of the activity can start, pause, over time, according to the duration of the page, have what idea?

CodePudding user response:

A stopwatch? Search has no corresponding controls

CodePudding user response:

reference 1st floor assky124 response:
a stopwatch? Search had no corresponding control

The beginning, end, I know how to make the pause time, but a few page shows the same page, and promise not to reload and destruction, the duration of the otherwise I go in

CodePudding user response:

You a few pages are bound a ViewModel, JetPack has a corresponding example

CodePudding user response:

reference assky124 reply: 3/f
you several pages are bound a ViewModel, JetPack has a corresponding example

Means that each activity to load this little page, binding the same viewmodel is

CodePudding user response:

You can have a baseActivity custom, other activity inherit this, write in baseActivity logic
  • Related