Spotted a bug? Have a great idea? Help us improve developer profiles! Submit feedback Google Developer Profile Send feedback Return to pathway Which of the following is NOT a reason for minimizing calls to findViewById()? These calls can slow down the user interface. findViewById() runs on the main or UI thread. Your app is less likely to crash. Every time findViewById() is called, it traverses the view hierarchy. Which of the following is NOT a benefit of data binding? Type safety for accessing views. Calling findViewById() generates a compiler error. Data and views are clearly separated. The Android system only traverses the view hierarchy once to get each view. Which is the correct way to reference bound data in the XML layout? android:text="@={myDataClass.property.toString()}" android:text="@={myDataClass.bound_data.property}" android:text="@={myDataClass.property}" android:text="@={myDataClass}" What is the function of the tag? When you use the layout tag, the compiler will generate an optimized view hierarchy for you. You can use it to define a layout instead of a layout file. It designates the top-level view in an XML layout that uses data binding. You wrap it around your root view in the layout, and bindings are created for all the views inside the layout. Submit answers error_outline An error occurred when grading the quiz. Please try again.