Associate-Android-Developer Exam Question 26

We have a custom view that extends android.widget.ProgressBar. Our progress bar is not touchable, focusable, etc.: it just shows progress. Style for our custom progress bar extends
"Widget.AppCompat.ProgressBar.Horizontal". An item, named "progressDrawable", in our style, is a xml file . What we usually can see as a main single element in this xml file:
  • Associate-Android-Developer Exam Question 27

    When your code execution reaches the breakpoint, Android Studio pauses execution of your app. You can
  • Associate-Android-Developer Exam Question 28

    Assume that you have the following situation: The app code calls for R.string.text_a Three relevant resource files are available:
    - res/values/strings.xml, which includes text_a in the app's default language, in this case English.
    - res/values-mcc404/strings.xml, which includes text_a in the app's default language, in this case English.
    - res/values-hi/strings.xml, which includes text_a in Hindi.
    The app is running on a device that has the following configuration:
    - The SIM card is connected to a mobile network in India (MCC 404).
    - The language is set to Hindi (hi).
    Which is the correct statement below?
  • Associate-Android-Developer Exam Question 29

    In our TeaViewModel class, that extends ViewModel, we have such prorerty:
    val tea: LiveData<Tea>
    An observer in our Activity (type of mViewModel variable in example is TeaViewModel) is set in this way:
    mViewModel!!.tea.observe(this, Observer { tea: Tea? -> displayTea(tea) }) What will be a correct displayTea method definition?
  • Associate-Android-Developer Exam Question 30

    Under the hood WorkManager uses an underlying job dispatching service based on the following criteri a. You need to move services to the correct places.