Advanced navigation app examples

  1. True or False: You can use the same ViewModel for multiple Activities or Fragments to share data.
  2. What is the correct way to access the shared view model using the Kotin property delegate approach?
  3. Fill-in-the-blanks

    Enter one or more words to complete the sentence.

    Use a LiveData ___ to return a different LiveData instance based on the value of another instance.

  4. How can the apply function in Kotlin be used to configure an object?
  5. Using a data binding layout expression, what’s the correct syntax for adding an attribute to the button in this layout in order to bind a click listener to it?
        android:text="@string/next" />